HTML - Form Select - Redirect To Paypal
Hello All,
I have recently founded a non-profit performing arts company (www.the roarkfaction.org). We'll be accepting members for $60 a year, payable at once or in monthly increments of $5.00. I've written this HTML code, which, paired with a simple PHP script, sends me an e-mail with details entered: <form method="post" name="myemailform" action="FormToEmail.php"> <center> <p> <label>Your Full Name:</label> <input name="name" type="text" id="SNN" size="50"><br /> <label>E-Mail Address:</label> <input name="e-mail" type="text" id="e-mail" size="51"><br /> <label>Payment Preference:</label> <input type="checkbox" name="yearly" id="yearly" /> <label for="yearly">$60 Once for One Year</label> <input type="checkbox" name="monthly" id="mointhly" /> <label for="monthly">$5 a Month, For One Year</label> <br /> <label for="paymeth">Payment Method</label> <select name="paymeth" id="paymeth"> <option value="1">Please Select One</option> <option value="cash">Cash</option> <option value="check">Check</option> <option value="cc">Credit Card</option> <option value="mo">Money Order</option> <option value="pp">PayPal</option> </select> <br /> <br /><br /> <center>Click Below to Submit Your Request</center> <center><input type="submit" name="submit" id="submit" value="Submit"> </center></form> What I'd like to do, though, is have it so if the user chooses "Credit Card" or "Paypal", upon clicking submit the e-mail is still generated, but a _blank is opened to our Paypal page. I have no idea how to do this. Any suggestions would be greatly appreciated. Regards, Samuel Similar Tutorialshi, i have written this form however when i recieve emails from paypal reguarding the order, certain options and fields the user inputted are not appearing. I know they did not just leave them blank because I called them back and asked them. any ideas? hopefully you guys can help me as soon as possible because it sucks calling all these people back and trying to figure out what they want. thanks so much! here's the coded form: the hidden select is on top and appears when a user selects custom design... HTML Code: <a style="display:none" id="selectHidden"> <select name="on2" style="background-color:maroon; font:12px verdana; color:white;"> <option value="none">Select One</option> <option value="white">White</option> <option value="maroon">Maroon</option> <option value="black">Black</option> <option value="heather">Heather Grey</option> </select> </a> <form action="https://www.paypal.com/us/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="collegiateproductions@gmail.com"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="Dress"> <input type="hidden" name="amount" value="40.00"> <table> <tr> <td id="leftcell"><a href="http://www.collegedresses.com/frame.html" target="_blank">Frame:</a></td> <td id="rightcell"> <select name="on0" id="select"> <option value="none">Select One</option> <option value="aframe">A-Frame</option> <option value="strait">Strait Frame</option> </select> </td> </tr> <tr> <td id="leftcell"> <a href="http://www.collegedresses.com/custom.html" target="_blank">Custom Design:</a> </td> <td id="rightcell"> <select onchange="newOptions(this.id)" name="on1" id="on1" style="background-color:maroon; font:12px verdana; color:white;"> <option value="none">Select One</option> <option value="custom">Custom Design</option> <option value="supplied">You Supply Shirt</option> </select><br /> <a id="newSelect"></a> </td> </tr> <tr> <td id="leftcell"><a href="http://www.collegedresses.com/topdesign.html" target="_blank">Design of Top: </td> <td id="rightcell"> <select name="on3" id="select"> <option value="none">Select One</option> <option value="halter">Halter Top</option> <option value="tube">Tube Top</option> <option value="doublestrap">Double Strap</option> <option value="tshirt">T-shirt Top</option> </select> </td> </tr> <tr> <td id="leftcell">Bottom Color: </td> <td id="rightcell"> <select name="on4" id="select"> <option value="bottomwhite">White</option> <option value="bottommaroon">Maroon</option> <option value="bottomblack">Black</option> <option value="bottomheather">Heather Grey</option> </select> </td> </tr> </table> <br /> <strong>Options - All options are free of charge!</strong> <br /> <a href="http://www.collegedresses.com/options.html" target="_blank">Middle Strap:</a> <input type="checkbox" name="on5" value="Middle Strap"> <a href="http://www.collegedresses.com/options.html" target="_blank">Middle Band:</a> <input type="checkbox" name="on6" value="Middle Band"> <a href="http://www.collegedresses.com/options.html" target="_blank">T-shirt Pockets:</a> <input type="checkbox" name="on7" value="T-shirt Pockets">> <a href="http://www.collegedresses.com/options.html" target="_blank">Scrunchy Pockets:</a> <input type="checkbox" name="on8" value="Scrunchy Pockets"> <a href="http://www.collegedresses.com/options.html" target="_blank">Side Pockets:</a> <input type="checkbox" name="on9" value="Side Pockets"> <a href="http://www.collegedresses.com/options.html" target="_blank">Bottom Band:</a> <input type="checkbox" name="on10" value="Bottom Band"> <a href="http://www.collegedresses.com/options.html" target="_blank">Bottom Lace:</a> <input type="checkbox" name="on11" value="Bottom Lace"> <br /> <br /> <strong><a href="http://www.collegedresses.com/measurements.html" target="_blank">Measurements</a></strong> <br /> <table> <tr> <td id="leftcell">Bust:</td> <td id="rightcell"> <select name="on11" id="select"> <option value="none">Select One</option> <option value="bustxs">XS (28-30)</option> <option value="busts">S (31-33)</option> <option value="bustm">M (34-37)</option> <option value="bustl">L (38-40)</option> <option value="bustxl">XL (41-43)</option> </select> </select> </td> </tr> <tr> <td id="leftcell">Waist/Hip: </td> <td id="rightcell"> <select name="on12" id="select"> <option value="none">Select One</option> <option value="waistxs">XS (21-23/30-32)</option> <option value="waists">S (24-26/33-35)</option> <option value="waistm">M (27-30/36-39)</option> <option value="waistl">L (31-32/40-42)</option> <option value="waistxl">XL (33-36/43-46)</option> </select> </td> </tr> <tr> <td id="leftcell">Skirt Length: </td> <td id="rightcell"> <select name="on13" id="select"> <option value="none">Select One</option> <option value="skirtxs">XS (21)</option> <option value="skirts">S (22)</option> <option value="skirtm">M (23)</option> <option value="skirtl">L (24)</option> <option value="skirtxl">XL (25)</option> <option value="skirtother">Other (specify in Comments)</option> </select> </td> </tr> <tr> <td id="leftcell" style="vertical-align:top;">Comment Box: <br />(Please use comment <br />box to specify <br />custom design <br />or give extra <br />instructions.) </td> <td id="rightcell"> <input type="textbox" style="background-color:maroon; font:12px verdana; color:white; font-weight:bold; width:200px; height:200px;" /> </td> </tr> </table> <br /> <br /> <strong>Remember, alterations are FREE!</strong> <br /> <br /> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="htts://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> I REALLY appreciate all the help guys. Hey, I have a paypal form that I want to pop up in a new window when the button link is clicked on... here's the beginning of my code: <div id="layer4" style="width:200px; height:40px; position:absolute; left:109px; top:275px; z-index:1;"> <p align="center"><form method="post" action="https://www.paypal.com/cgi-bin/webscr"> any ideas???????????? hi guys, i need some help with my paypal form. I've added option fields and checkboxes but i need to add areas to insert measurements. (basically text boxes). I know how to do this with HTML but my question is: if i put these fields in, will paypal process them and then send me a copy of the orderform so i know what measurements to use? can i access the customers completed form once it is sent through paypal? or will i need to use a php code or something? (if i do does anyone know where i can find the code, maybe have you guys help me write it?) any help is MUCH appreciated, and i could use it asap. thanks a bunch. here's the order form: http://www.collegedresses.com/order.html Hi everyone, below is my Paypal html order form. Im still working on the site " http://www.rjapzdesigns.com/#/order-form/4552072670 ". And I added the 5 input fields, and when the buy now is clicked, it directs to the Paypal payment page, but the information doesn't show up in my paypalaccount email. And my site is hosted by moonfruit, and their email client works works fine. I done tuns of test runs and can't find the problem. Please help if any body know what codes are missing, or needs to be changed, It's driving me nuts... Code: <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> Company Name*:<input type="text" name="Company name" size="15"><br> Slogan: <input type="text" name="Slogan" size="15"><br> First Name*: <input type="text" name="First Name" size="15"><br> Last Name*: <input type="text" name="Last Name" size="15"><br> Email: <input type="text" name="Email" size="20"><br> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="paypalaccount@rjapzdesigns.com"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="item_name" value="Camping/Hiking"> <input type="hidden" name="item_number" value="Camp1front"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="button_subtype" value="services"> <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> Robert Hi, Yesterday, I wasted a couple hours trying to center the Paypal button inside a form inside a table. You can see it near the bottom of this page: http://www.jesussaidfollowme.org/new...t-theology.htm Do you know how to solve my puzzle? Thank you, Greg Hey all, I am so close o having this form done. I am noob at HTML and PHP (all languages for that matter). I did get some help and was able to have the form work correctly, send it to my php, and send the email... The only thing I am lacking is having the page redirect. I searched the forum and found some relative information, but it seems that I have it correct? Yet, it is still not working. I assume it can be done on the HTML side or the PHP side. I see where it seems to be in the HTML...but no luck. Code: <html><body> <!-- Start Form --> <form method="post" action="sendmail.php"> <table border="0" cellspacing="0" cellpadding="0" width="235" align="center"> <tbody> <tr> <td height="3"></td></tr> <tr> <td style="font-family: Tahoma; color: #c70001; font-size: 8pt" align="center"></td></tr> <tr> <td class="form_text">Full Name :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Name" type="text" name="Name" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Email :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Email" type="text" name="Email" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Phone :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Phone" type="text" name="Phone" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Zip code moving from :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="ZipFrom" type="text" name="ZipFrom" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Zip code moving to :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="ZipTo" type="text" name="ZipTo" /></td></tr> <tr> <td class="form_text">No. of bedrooms :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="NumBedrooms" type="text" name="NumBedrooms" /></td></tr> <tr> <td class="form_text">Move date :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="MoveDate" type="text" name="MoveDate" /></td></tr> <tr> <td class="form_text">How did you hear about us? </td></tr> <tr> <td height="24" valign="top" align="left"><input id="Referral" type="text" name="Referral" /></td></tr> <tr> <td height="4" valign="top" align="left"></td></tr> <tr> <td valign="top" align="left"> <table border="0" cellspacing="0" cellpadding="0" width="217"> <tbody> <tr> <td height="8" valign="top" align="right"><input value="Website Contact :: Big League Movers" type="hidden" name="subject" /> <input value="beaushaw@bigleaguemovers.com" type="hidden" name="recipient" /> <input value="http://www.bigleaguemovers.com" type="hidden" name="redirect" /></td></tr> <tr> <td height="32" valign="top" align="right"><input value="submit" type="image" src="images/submit.jpg" /></td></tr></tbody></table></td></tr></tbody></table><!-- End Form --> </form> </body></html> You can also check out the page at http://www.bigleaguemovers.com/jj.testform.html Thank you i have a question. What is the best way to redirect someone using a textarea form to redircet to a new webpage. What i want is the textarea to grab the input and add it to the end of a url. e.g. someone puts 'abcd' into the text box and presses the submit button. the button then grabs the text entered and adds it to the end of a specific predetermined url 'www.1234.com' and it redirects to 'www.1234.com/abcd' any help would be appreciated Mark I'm using the Dodosmail script, and am trying to redirect to a different page, once the form has been completed. I've followed the readme file and have entered in the after URL, but everytime, the form sends me to my dodosmail.php page, and not starterpack.php (which I want). The form works, but it just doesn't send me to the right page. Does anyone know if I've gone wrong at all with the coding? HTML Code: <form action="http://broadcast.tcg-publicity.org/dodosmail2_5/dodosmail.php" method="post"> <p> <input type="hidden" name="subject" value="Broadcast-Join" /> <input type="hidden" name="your_email_address" value="broadcast-tcg@live.co.uk" /> <input type="hidden" name="check_email_address" value="no" /> <input type="hidden" name="required_fields" value="firstname,email,website,set" /> <input type="hidden" name="after_url" value="starterpack.php"> Name: <input type="text" name="firstname" /> <br /> Email: <input type="text" name="email" /> <br /> Website: <input type="text" name="website" /> <br /> Birthday: <select name="date"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="month"> <option value="january">January</option> <option value="february">February</option> <option value="march">March</option> <option value="april">April</option> <option value="may">May</option> <option value="june">June</option> <option value="july">July</option> <option value="august">August</option> <option value="september">September</option> <option value="october">October</option> <option value="november">November</option> <option value="december">December</option> </select> <br /> Collecting Set: <input type="text" name="set" /> <br /> Referred By?: <input type="text" name="referrer" /> <br>Comments: <textarea rows="5" cols="20" wrap="physical" name="comments"> </textarea> <br> <input type="submit" value="Submit" /> </form> Hi, I've designed an email html form that duplicates the search options a user tried on a CT website so those details can be sent by email to specific indviduals for investigation. The form works perfectly, apart from in IE7 where the email field is not filled in but this, I believe, is diown to IE as it works perfectly when using Google Chrome. <form action="email addresses here" enctype="text/plain" name="EmailTestForm"> Rest of the form here, including check box and radio button functions and ends with <input type="submit" value="Submit"> <input type="reset" value="Cancel"> What I would also like it to do is then send the user to a Thank You page, where I can then put a link to the site's homepage (this I know how to do). I've tried many options but none of them work, even the ones on HTML sites that say "this one works". At the moment the form is using the users' own default mail client. The idea is, eventually to get the site hosting to use Perl or some other such to enable the site to submit the form. At that stage I can replace the form action with the URL and that should do the trick. However at this stage I would like the form to both submit the details by email and redirect to another page. As I'm only entering and creating page content, is there a way to do this w/o having to enter any CSS or HTML in the <head> (I don't have access to that level of the site)? Hope you can help. Many thanks Addendum: Solved the IE problem. Removed the Method="POST" element of the tag. Yay!!!!!!!!!!!!!!! Only problem now is that the form looks pants in IE. I cannot for the life of me figure out how to redirect to a thank you page after my form is submitted. I am using post to cgi. What is happening currently users are immediately taken to my index (main) page. I wish to redirect to a thank you page upon submitting the form. How is this accomplished? The form works properly now and I have tried searching through the forums for an answer, but end up a bit more confused than I am now. My thanks in advance. Woody (as you can probably tell I am very new to html) I'm selling a product and only three out of four are managed through Paypal. I have a buy now drop-down form on my site for Paypal, but I need to ad a fourth option without changing the name of the form. When that one option is selected the user should be auto redirected to another page. The other three options shouldn't do anything until the buyer presses the payday buy now button. Any ideas? Hey everyone, This is my first post here, and I was hoping you guys could help me with a problem I am having. I own a race photography company and I am trying to find a way to create a form that athletes can fill out and it will take them to their images. I have keyworded all the images on my smugmug site with a race id followed by a number, such as "gunstock 6" So if they visit http://blahblahblah.smugmug.com/keyword/gunstock 6 it will bring up all the images of them from that race (every image keyworded with gunstock 6) However..... what I want to do is make that into a form which will take them to that specific page. I am a newbie when it comes to designing forms and webpages, and after searching around, it seemed the form get command sort of achieves what I want, in that it takes the form input and places it in the url. However... it also places the usual query text such as the question mark, =, and all that good stuff. So when I enter the race id and number on my form, it will instead take me to the url .../keyword/?=gunstock&=6, which instead of being a defined page with all of the images keyworded gunstock 6, it will just bring me to the keyword search page of smugmug. Is there any way to design a form that redirects simply to the .../keyword/raceid # url format? Thanks a million! Hello All! I am a newbie to HTML and am having the most troubling time getting my submit button on my form to redirect to another webpage. I have been reading (searching) through previous posts on this issue but none solved my problem. I am really hoping someone can offer some help so let me explain my issue exacly. I have a simple form on my "Contact Us" page with a few fields and a [Submit]button. After the form is filled out and the [Submit] button is pressed, I would like it to re-direct to a "Thank-You" page I created. Below is my code: <form action="gdform.asp" method="post" name="contact_us" id="contact_us" target="cont"> <input name="submit" type="image" value="submit" src="images/Submit.gif"> If I take target="cont" out, it redirects to the home page. I have been trying to figure this out for so long now and searching online with no luck. Any help with this would be GREATLY appreciated!!!! Thanks! Right here it goes, not sure if it is at all possible but any input would be much appreciated. Here's the deal. Developing an easy straight forward online store integrated with EBSWorldpay . Not looking for any fancy stuff. What i would like to do is put a flash url link that would direct a user to a html file that contains a hidden form and it would submit it on load redirecting a user straight to EBSwordpay checkout. Simple HTML Redirect with submited form. check the link here it has the source code of the form that is required.: http://www.rbsworldpay.com/support/b...=examples&c=IE Trying to use Example 0.1 ( So instead of having a separate page with a "BUY" for the form to be submitted, I would like to get the form posted straight away which would in turn load the payment site. Would create a seperate html file for each item and have redirects on the main website linking to those onLoad submit forms. Tried to explain as best as possible. Let me know if it's not clear enough. Is there any way to limit the selection form a multiple select box to a certain number. <select multiple="multiple" size="5"> <option>Beer</option> <option>Vodka</option> <option>Guinness</option> <option>Sambuca</option> </select> How can I stop people selecting more than 2 options? Cheers in advance for the help. How can I select the correct field in my "Select form field", once I know the value from php/mysql? PHP Code: $_SESSION['job'] = "FX"; Now I want to update the form to display the selected value... HTML Code: <select multiple="true" name="field"> <option value="FL" selected="true">Flash</option> <option value="FX">Flex</option> <option value="AJ">Ajax</option> <option value="PH">Php</option> <option value="HT">Html</option> <option value="JV">Java</option> <option value="CC">C++</option> </select> I've seen it alot of places, though I cannot seem to get my hand on how it works (as I never think about checking the source when I DO see it!).. How can I get one <select> field option to control another? Like, say I have a list with: 1 2 3 4 and a list with: A B C D ..and when I select "3" in the first list, I want the second list to AUTOMATICLY change to "C". How do I accomplish this? Hey, Using PHP and MySQL but I thought this problem is more suited to HTML (admin, please move if its not). I have a drop down select form which I want to automatically change the page once the user has selected it. Like a home page of a company and you choose the country, when it automatically goes to the appropirate page. Any ideas of how to do this? Thanks, Hey, just a quick question... How would i go about using an image as a select option in a form? i know its possible as ive seen it around on a few sites before, but im not sure how to do it myself. tried the obvious: <select name="stars"> <option value="1"><img src="MYIMAGE"></option> </select> but oviously that doesnt work. any help would be greatly appreciated. |