PDA

View Full Version : using divs to set a target for form input


persia
08-21-2002, 06:07 AM
Hi

I've got a page with two columns, done using a table. I want to use a form in the left column to deliver input to the right column (on another identical page). Can I tell the script I'm going to use to do this to deliver the input to the right column, by adding a target div to this column?

Hope this makes sense.

Thanks

Persia

Mr Travis L
10-01-2010, 06:42 AM
In my opinion, HTML is just for layout of the website. For what you want, you would be better off, if not have to use PHP.

The PHP Get/Post methods can do exactly what you want. To save you the trouble of trying to figure out the differnce between Get and Post are, like me... (I didn't figure out until a month after I learned it :P They both just looked the same to me) Here is a little explanation, with a url to the tutorials at the bottom.

The Get method will put whatever you typed in the form on your page (wherever you put the "echo $_POST["fname"]") and make it so people can bookmark whatever they typed/picked in the form. For example, the url of the of a Get method would be:
http://www.whateveryourwebsiteis.com/index.php?formname=whateveryouput
While a Post method does the same exact thing as the Get method, but does nothing to the url, so whoever can't bookmark it.

http://www.w3schools.com/php/php_post.asp