PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to get a simple form on several pages that anyone can fill and post to that same page. sort of an opinion feedback that anyone can read when they see the page.
I've got the HTML form perfect, but the PHP file is wrong i think, cause when i test the form, it echoes to the PHP file and doesn't post, just has the names of the form boxes blank.
is that the HTML or PHP code? cause i tried that and now when i try the form on the page, it just goes to the PHP file with a small textbox and a submit query button
Salcom wrote:is that the HTML or PHP code? cause i tried that and now when i try the form on the page, it just goes to the PHP file with a small textbox and a submit query button
It is php and html code... When the page first loads it shoud display the box and button, fill in some info and press the button. It should echo the variable at the top of the page for you and the variable should remain in the textbox so you can edit it.
The reason you want to run htmlspecialchars is because a user could put the following in the textbox which would screw some stuff up.