Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Passing form data in URL using post method
Closed Thread
Old 01-08-2007, 06:41 AM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2007

Posts: 3

Allex

Default Passing form data in URL using post method

Hi all,

I am trying to pass data from a form field (to help adsense target ads) and I am running into a wall. I know it should not be that hard and there should be a script that can help.

Anyway, here's the scoop. Normal form, using the POST method. I just want to take a form field (which will be the name of a state) and add it into the URL when the user clicks on submit.

Anyone have any pointers or examples? Thank you in advance.
Allex is offline  
Old 01-08-2007, 05:58 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

http://www.itc.virginia.edu/atg/soft...ge-action.html

dynamically change the form's action attribute to pass a GET value

action=/index.html?state=delaware
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On