I have a few questions about PHP. I am a newbie and still a little confused. Now when you do a form for php do you put everything on one page or use links for the page. Such as HTML,PHP and the form. Or can the form just be on the HTML and then be link over to php or no? If not then does the php go ahead of the html?

6 Years
Discussion Span
Last Post by twiss

It depends on what you want to do, exactly. Normally, you decide on a page you want to post to (can be another or the same page), and on that page you put the php to process the request and the html for the response (normally in that order, as you want to let the html depend on the result of the php). You could also post to a separate page that has only php, and then redirect the user to another page.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.