Forum Moderators: coopster

Message Too Old, No Replies

passing form values to a URL

         

fawad112

9:00 pm on Jan 8, 2005 (gmt 0)

10+ Year Member



hi there
i want someone to tell me how to send values in a form to a URL ..i want to pass 3 values entered by the user nad 1 value calculated by the javascript to a URL. i m using 2checkout method to accpet payment from my client. NoW is
the link looks some thing like this

(Payment Page URL)
[2checkout.com...]

and i have a html form having fields sid cart number and total. I want to pass these value to the URL specified above.
I m using PHP script to send the form value to my email address. i want some one to help me out in this so that i can send the values of the form to my email address and the next page that appears after the user clicks send button on my form is the payment page ( above URL)

fawad112

8:49 am on Jan 10, 2005 (gmt 0)

10+ Year Member



can any one answer this question

i really need some help

jatar_k

10:20 pm on Jan 10, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld fawad112,

if you use method='get' in your form and then that url you posted as the action it should append the form values to the url.

Another option is to have the user input the values, post those values to a script, append them to the above url and then use the header function to redirect them to the constructed url.