Welcome to WebmasterWorld Guest from 54.211.136.250

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to submit form data as query string

   
4:38 pm on Feb 8, 2012 (gmt 0)

10+ Year Member



I have a lead gathering form on my website. I currently use it to gather leads for my clients as follows:

1. User fills out form
2. Form data is validated by form processing script on my server (java based validation)
3. Form data is posted to form processing script via
http://mysite.com/myformprocessingscript/etc

4. My form processing script saves the lead in a database, so I can review and count the leads generated and then it emails the form data to the client.
5. A confirmation page from my site is shown.

However, I have a new client that does not want to receive his leads via email. He wants me to post the form data directly to his website as a query string:

 http://hissite.com/hisformprocessor?formfield1=#*$!_formfield2=yyyetc


Unfortunately, I don't know how to code this. Can someone give me some ideas that may meet the following criteria:

1. User fills out form.
2. Form data is validated.
3. Form data is compiled into a query string and posted to clients site.
4. Somehow, form data is also sent/saved for me to review, as well.
5. Confirmation page from my site is shown.

Hopefully, there is an existing form processor/script!

Thanks!
7:32 pm on Feb 8, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



On the form action use method="GET" instead of POST.