How to pass values for fields to a form via URL (HTTP POST)

taung 17 Jan, 2013
Hello,

I have a online payment form. I want to be able to pass basic values via a URL such as "https://sample.com/cardpayment.html?fname=John&lname=Doe&amount=10"

The form doesn't need to get auto submitted, actually I don't want it to be auto. User need to verify the info first.

But when I try to post as above, the values doesn't show up in the fields.

Any ideas?
GreyHead 17 Jan, 2013
Hi tuang,

If the values show in the URL then you are using GET, not POST.

The ReDirect URL action will let you send info by GET in the URL, or you can use the cURL action if you want to use POST.

Which way is best depends on what the payment gateway needs and whether the user needs to go to the other site to confirm payment.

Bob
taung 28 Jan, 2013
Hello,

I am using Authorize.net and I am using the plugin so I dont' need to redirect users to payment gateway's "processing" page.

I am wondering how to do this more in general way. I have a lot of need to pass values to contact forms so that the user don't have to fill it. For example, I have bill question contact form. The user get a "late invoice" email notice and I want to pre-configure the contact us link in the email with the invoice number variable so that when the user click on the link in the email, the contact form is loaded with the invoice number already filled in.

Okay to show the values in the URL so GET works for me. I dont know how to do curl.

MY issue is when I try it out on a form, the values don't get passed.

ANy idea?
GreyHead 28 Jan, 2013
Hi Taung,

I suggest you start with a $3 read here. That should save you a few hours hunting.

Bob
This topic is locked and no more replies can be posted.