Jump to content

Archived

This topic is now archived and is closed to further replies.

HAMM3R

Handle form in same file

Recommended Posts

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!

Share this post


Link to post
Share on other sites
You can make a single file, but you will have to submit it (the form) anyways (even if it submits to itself).

Share this post


Link to post
Share on other sites
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.

Orio.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.