View Full Version : A question on Forms


darksoul
05-03-2003, 06:44 PM
well i have a site, right. and i want it to send information to another site about the colors it needs to use in php. how would i do this.

the site i'm testing on is this site (http://darksoul.kittenelle.net/test.php).

Thank you.

Cherchezlafemme
05-03-2003, 06:49 PM
Ummm more description please!

darksoul
05-03-2003, 07:35 PM
okay.

i want it so when someone veiws that page it submits the form with the colors for the log in box on the side.

darksoul
05-03-2003, 08:53 PM
ya know what, i'm going to explain it more, cuz it isnt reallyclear what i want. I have a website that is hosted in ftp. it uses php and i'm making my site have multiple themes. my files were getting big so i put some of my code into another file that it reads anyways (db_connection.php). in there i have the following code:

$theend = " </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD vAlign=top align=right width=135>
<BR><BR>
<TABLE BGCOLOR=".$_POST['c2']." cellspacing=0 cellPadding=0 width=115 border=2 bordercolor=".$_POST['b'].">
<TR><TD>
<table vAlign=\"top\" align=\"left\" border=0 cellspacing=\"0\" cellpadding=\"0\" bgcolor=".$_POST['c2']." width=100%>
<tr><td bgcolor=".$_POST['c1']."><FONT face=\"Tahoma\" style=\"font-size: 12px\">__Logged in</font></td></tr>
<tr><td><font face=tomaha face=\"Tahoma\" style=\"font-size: 10px\">_Username:</font><div align=\"right\"><font face=tomaha size=\"-2\">".$_SESSION['username']."_</font></div></td></tr>
<tr><td><font face=tomaha face=\"Tahoma\" style=\"font-size: 10px\">_Email:</font><div align=\"right\"><font face=tomaha size=\"-2\">".$email."_</font></div></td></tr>
<tr><td><center><form method=\"link\" action=\"logout.php\"><input type=\"submit\" name=\"submit\" value=\"Logout\"></form></center></td></tr>
</table>
</TD></TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>";

i need the site test.php to post (send the form) to that site, when someone veiws it, so it can get the infromation about the currect color scheme. what is the code to do this?