September 23, 200817 yr How do you style the text in a input box on a form ? In CSS i guess yes but how??
September 23, 200817 yr Cheers of course it is !!! Duh!! Thanks again No problem, was a tutorial I wanted to write soon anyway and your post just speed it up
September 23, 200817 yr No you just write your form as you normally would example: <form method="post" action="email.php"> Email:<br /> <input name="email" type="text" size="30" /><br /> Message:<br /> <textarea name="message" rows="15" cols="40"> </textarea><br /> <input type="submit" /> </form> The style would then be applied to the input box and the textarea.
September 23, 200817 yr Author put its written in php $form ="<form action=\"$self\" method=\"post\">"; $form.="<table><tr><td align=\"right\" valign=\"top\">Name:</td><td><input type=\"text\" name=\"username\""; $form.=" size=\"30\" value=\"$username\" ></td></tr>"; $form.="<tr><td align=\"right\" valign=\"top\">Email:</td><td><input type=\"text\" name=\"useraddr\""; $form.=" size=\"30\" value=\"$useraddr\"></td></tr>"; $form.="<tr><td align=\"right\" valign=\"top\">Phone:</td><td><input type=\"text\" name=\"phonenum\""; $form.=" size=\"30\" value=\"$phonenum\"></td></tr>"; $form.="<tr><td align=\"right\" valign=\"top\">Which Course?</td><td><textarea name=\"comments\" cols=\"20\" rows=\"3\">"; $form.="$comments</textarea></td></td>"; $form.="<tr><td></td><td><input type=\"submit\" name=\"sent\" value=\"Send\" class=\"btn\"></td></tr></table>"; $form.="</form>";
September 23, 200817 yr Hmm I am not 100% but it still should work, give it a try what's the worst that can happen
Create an account or sign in to comment