| | |
Input box not showing
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2006
Posts: 164
Reputation:
Solved Threads: 3
Hey all, Im trying to put a submit news box on my admin page but for some reason my top box, Headline: "Textbox here", is not showing up on my page. Am I doing something wrong? Did I miss a tag somewhere?? Thanks in advance.
HTML and CSS Syntax (Toggle Plain Text)
<tr> <td> <br> <!--Display Add News Box--> <h3>Add News</h3> <table> <form action="admin/adminprocess.php" method="post> <tr> <td> Headline:<br> <input type="text" name="headline" maxlength="50" value="<?php echo $form->value("headline"); ?>"> </td> <td> Date:<br> <input type="text" name="date" maxlength="8" value="<?php echo $form-> value("date"); ?>"> </td> </tr> <tr> <td> Content:<br> <textarea type="text" rows="6" cols="50" name="text" maxlength="50" value="<?php echo $form->value("text"); ?>"></textarea><?php echo $form->error("text"); ?><br> </td></tr> <tr><td> <input type="hidden" name="subnews" value="1"> <input type="submit" value="Submit News"> </td></tr> </form> </table> </td> </tr> <tr> <td><hr></td> </tr>
What does the code look like when you view-source in a browser ( i.e. after the PHP code has been executed ). Post the same code after PHP, and check to make sure those echos don't put invalid characters inside the value attribute.
Are you using an XHTML DTD, a HTML DTD, or no specified DTD? [ that code uses HTML tag closure rules, so you shouldn't use an XHTML DTD, a HTML DTD is preferable, but no DTD should work functionally ]
Try putting the form element outside the table element ( i.e. <form><table>..</table></form> rather than <table><form>..</form></table> ). Only certain things should go directly inside <table> elements ( tbody, tr etc )
EDIT: Oops; I didn't see the solved marker on this thread... How did you solve the problem in the end?
Are you using an XHTML DTD, a HTML DTD, or no specified DTD? [ that code uses HTML tag closure rules, so you shouldn't use an XHTML DTD, a HTML DTD is preferable, but no DTD should work functionally ]
Try putting the form element outside the table element ( i.e. <form><table>..</table></form> rather than <table><form>..</form></table> ). Only certain things should go directly inside <table> elements ( tbody, tr etc )
EDIT: Oops; I didn't see the solved marker on this thread... How did you solve the problem in the end?
Last edited by MattEvans; Apr 6th, 2007 at 3:54 pm.
Plato forgot the nullahedron..
•
•
Join Date: Oct 2006
Posts: 164
Reputation:
Solved Threads: 3
heh, bad typing on my part
should be:
HTML and CSS Syntax (Toggle Plain Text)
<form action="admin/adminprocess.php" method="post>
should be:
HTML and CSS Syntax (Toggle Plain Text)
<form action="admin/adminprocess.php" method="POST">
![]() |
Similar Threads
- input box (Visual Basic 4 / 5 / 6)
- Looking for List Box help, please! (VB.NET)
- Text input box alignment question (HTML and CSS)
- Sending data to a input box on another website? (PHP)
- Validation Problems for Input Box data (VB.NET)
Other Threads in the HTML and CSS Forum
- Previous Thread: getting layermovement in netscape
- Next Thread: How I Can, Solve font Problem ? On My website.
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






