TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Form to submit to another form (http://www.talkphp.com/general/3151-form-submit-another-form.html)

patmagpantay 07-20-2008 04:46 PM

Form to submit to another form
 
I made a form in my website (PHP), I would like it so that when the submit button is clicked the data on my form fields will be forwarded to another form on my shopping cart page? Thanks in advance!

patmagpantay 07-20-2008 06:30 PM

Here is my form by the way

<form action="" method="get">
<table width="250" border="0">
<tr>
<td>Name</td>
<td><input name="name" type="text" class="textfield" id="name" /></td>
</tr>
<tr>
<td>E-mail</td>
<td><input name="email" type="text" class="textfield" id="email" /></td>
</tr>
<tr>
<td>Zip</td>
<td><input name="submit" type="text" class="textfield" id="submit" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Sumbit" id="Sumbit" value="Submit" />
<input type="reset" name="Reset" id="Reset" value="Reset" /></td>
</tr>
<tr>
<td colspan="2"><div align="center"><br />
<img src="Images/form-images/13.gif" width="94" height="54" /><img src="Images/form-images/14.gif" width="94" height="54" /><br />
</div></td>
</tr>
</table>
</form>

and here is the link where i want the values when the "submit" button is clicked.

http://1.tradeguide.pay.clickbank.net/


Thanks!

delayedinsanity 07-20-2008 08:40 PM

Just out of curiousity, why have them fill out a form on your page first if they have to fill it out on clickbank anyways?

Change the name of the email text input to "emal", and the name of the zipcode text input to "zipc" and then add http://1.tradeguide.pay.clickbank.net/ as your form action.
-m

patmagpantay 07-20-2008 09:51 PM

thank you for replying but unfortunately it didn't work. I tried in both post and get.. by the way i made this so that people will wen redirected to my shopping cart has to fill up just the credit card information. and where did you get the values "emal" and "zipc? thanks?

delayedinsanity 07-20-2008 10:00 PM

From their form, it worked for me using GET to inject the data. When I go there, I get the full url:

https://ssl.clickbank.net/order/orde...=&ctry=&zipc=&

so I just built a form that would supply that link with name/emal/ and zipc
-m

patmagpantay 07-21-2008 05:37 AM

I don't know how to thank you for your patience but can you please cut and paste the codes for the form you used in here ill just cut and paste it please :(

THANK YOU!

delayedinsanity 07-21-2008 06:29 AM

Upon further inspection I can't get the zip to work, only the name and email, and all I did was this;

Code:

<form action="http://1.tradeguide.pay.clickbank.net/" method="get">
<input type="text" name="name" value="" />
<input type="text" name="email" value="" />
<input type="submit" />
</form>


patmagpantay 07-21-2008 07:22 AM

oh my oh my you are a legend mate!! TOAST! but the zip code doesnt seem to work :( is there anyway possible hmmm

delayedinsanity 07-21-2008 07:42 AM

This may not produce any results, but have you tried contacting ClickBank and asking them if they have anything set up to allow for people using their services to do such a thing?
-m


All times are GMT. The time now is 06:17 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0