Jump to content


Handle form in same file

  • Please log in to reply
2 replies to this topic


  • Members
  • PipPip
  • Member
  • 15 posts

Posted 19 April 2006 - 03:49 PM

Right now I have 2 files: form.htm and form.php. There is an input form in form.htm, and it sends the data via POST to form.php where it is processed. However, im behind a packet filter which is messing up the POST process. So my question is, how can i have the form, and process it in the same file? ... thus eliminating the POST action? This way I would have 1 file (form.php). Thanks in advance!

#2 poirot

  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 19 April 2006 - 03:53 PM

You can make a single file, but you will have to submit it (the form) anyways (even if it submits to itself).
~ D Kuang

#3 Orio

  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 19 April 2006 - 04:31 PM

PHP is a server-side language, meaning all the calculations are being made on the server. That means you have to send the information to the server in any case.

Think you're smarty?

(Gone until 20 to November)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users