View Full Version : Sending a form without the <form>

09-17-2008, 10:00 PM

I have few text fileds and text aeras, which are located in my PHP document, all over the page.

Due to my own reasons, I don't want to include the "<form>" and "</form>".

Is there a possible to send this form without the form tags?

Thank you very much :)

09-18-2008, 12:57 AM
That's odd, I don't think you can, but you can however pass data via URL and accept it using GET method.

This is'nt tested yet, but try to send the data via the URL:


...and on your PHP:

echo $_GET['data'];
echo $_GET['otherdata'];

To come up with that URL, we might need a little JS, but hope that makes sense.

Get back if you're still stumped.

09-18-2008, 10:03 AM
I don't like using the GET method so much.

I just have few input fileds, Is there another way to get their values into PHP variables without the form tags?

09-18-2008, 10:48 AM
I don't think there is a possibility for that, but I might be at mistake.

Let's wait for some members to confirm or oppose my above statement.

09-18-2008, 11:22 AM
You can use cookies for that purpose. Though it has its own problems like the user may disable cookies, erase cookies, etc.

Why do you want to avoid sending the complete form to your server-side? I wonder