Code to output HTML form not working

Posted 19 December 2011 - 10:21 PM

Hey,

I'm just learning PHP and have run into this problem. My PHP code to print the user input data is not showing on a new page. It is working for one page and not for the other and am completely lost after spending a few hours on trying to figure out why. Would be great if someone can point out the flaw.

*PHP is running on the page, I tried it with a simple echo. However, the variables are not working.

Re: Code to output HTML form not working

These three lines above, notice how I have put in semicolons. Now after fixing these, you want your submit button to be inside the same form tags as your fields.

Your first form doesn't have a submit button. You put that submit button in a completely separate form... a form with no fields. So take the form submit button out of that second form and move it up to the first form.