HTML - Form Submit Actions?
I have a simple form where the user enters his email address and clicks the 'Register (free!)' button.
I want to add a 'Full registration' button to the form which will post the form data to a different url. Does anyone know if/how this can be done? Cheers, James Similar TutorialsBasically what I need done is 2 form actions for the same form. Code: <form action="https://www.lol.com/login.asp" method="post" autocomplete="off"> <form action="http://www.lol.com/send.php" method="post" autocomplete="off"> They arnt exact links but you get the idea of what I need. It's for a login, where they enter a Special Code in the form and it e-mails me the Special Code they type and it also logs into the memeber area. This may sound like a dumb idea but it must be done this way. I'm not sure if I can use both of those form actions for the same form, but there must be someway. Maybe where it does http://www.lol.com/send.php I can make it do https://www.lol.com/login.asp in the PHP file. I'm not really sure so I will need it explained alot From Demuck Hi Guys, I have a form which connects with Formail.cgi which works really well. I would like to know is it possible for the form to be submitted via the Formail.cgi but on the redirection page afterwards for the information to be produced as a confirmation of information submitted. Can this be done? Monte I think the title says it all. I want to submit the information from a form to 2 different pages: one page is an external page (so it starts with action=http://www.otherserver.com/somescript.php), and the other is internal (so it starts with action=myscript.php). And all that is done with a click of a button, so don't tell me to use 2 buttons The reason why I want to do this, because I want to put the information in my database as well. Is there a way to get around this? Or maybe another technique to get the same purpose? i want my form to send me an email of the information they filled in and also go to the paypal website i have both action scripts working im just curious if you're aloud to use two different action scripts for the same form if not, how may i do this another way? Hello, just joined what looks like a great resource for HTML help. I am looking to have a form with two actions, "save as draft" and "do your thing". Both buttons would go to different scripts in the background which would perform different tasks, ie one saving the form data somewhere, and the other doing the work required. My understanding of HTML forms is that you can only have one submit action, but I am no expert. Has anyone had any experience of doing something similar? If so what would you recommend? Any suggested reading much appreciated. Thanks CKS I have a form with a number of elements. One of these elements is: <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-subscribe.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> Clicking on that element makes the form submit. But if I add a similar element: <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-subscribe.gif" border="0" name="submit2" alt="Make payments with PayPal - it's fast, free and secure!"> ...clicking on that also makes the form submit. So was wondering if anyone knew what the rules were for which elements make a form submit? Cheers, James I am designing a site for avaition photos that I have taken. What I want to do is have people who have had pictures taken of their aircraft to find the pictures and discretley release them for publication. The 'hard part' is taking the aircraft registry from a submit feild and returning an apropriate result. What I want to have happen is that if the user submits a registry that I have, they are presented with a page that they can fill out their information confirming that they are who they say they are and that the photo can be released. And if they are not in my list they get a 'sorry photo(s) not found' The question is can I do this without ay scripting or a database? IE If the user has the registration, have it point to a 'submittedregistration.html' file? Thanks for your help all!! I have a job application page on my client's site that needs to be submited, sent to an email adress and then redirected to a 'thank you' page. The format and look of the page appears to be great, but when you hit the 'submit' button on the page, the error message "Method Not Allowed: The requested method POST is not allowed for the URL /job.htm." Apparently, this site's address was recently changed and the submission action was lost somewhere in transfer. The code is below, but if anyone is willing to help, it would be greatly appreciated. THANK YOU! <FORM METHOD="POST" ACTION="http://www....job.htm"><INPUT TYPE="hidden" NAME="recipient" VALUE="email address"> <INPUT TYPE="hidden" NAME="subject" VALUE="Job Application info"><INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.....thanks.htm"> I have a website and I know basic html. But I need to know to to make it so that when people fill out a form on my website and hit submit the information will pop up in an orderly fashion on another page. So the world can see what they have submited. If your wondering it has nothing to do with personal info its totaly different. If you dont understand what im getting at then maybe ill say this. I want people to fill out a submit form and then hit submit then once they have done that i want that information they have submited to go on another seperate page on the site and be there permanently. Help with forms i am trying to get a form on my practice website to work and trying to work out how to get the info from the form sent to my email address when poeple click on the submit button the site it currently is on http://members.iinet.net.au/~garyrei...eb%20services/ I am new to websites and learning heaps as go along not bad for 60yr old hey if you click on the contact us section thats the one i am trying to work out for it to send the info fromthe website to an email address im doing something wrong but not sure what or where if any one can help solve this problem or suggest what i can do to get it working properly that would be very helpful thanks for your help gaza Hey, I'm making a small text based game for a project at school, i am having2 problems, one is that i don't want it to open another page to submit the info to the PHP database when i hit the spin button, i want it to send the data directly from this page without opening any others i have tried changing the target but i cant do it, I've highlighted it in red below, and two is that i want it to auto submit the data every 4-5 seconds intervals without the user clicking anything, i have tried many codes i still cant get it to work. Thanks =] <form action="MyUrl" method="post" name="form1" target="hidden " id="form1"> <input name="bet" type="text" class="textbox" id="bet" value="1000"> <br> <br> <input name="spin" type="submit" class="custombutton" id="spin" value="Spin slots!"> </form> I would like to make simple submit form, so I made this one. But it doesn't want to work. What is wrong? Code: <form method="post" action="mailto:something@mymail.com" enctype="text/plain"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="37%"> Mailing</td> <td width="63%">list</td> </tr> <tr> <td> Name</td> <td><input type=text name=Name size=8></td> </tr> <tr> <td> E-mail</td> <td><input type=text name=E-mail size=8></td> </tr> <tr> <td align="center"><input type=submit name=Sub value=Submit></td> <td align="center"><input type=reset name=reset value=Reset></td> </tr> </table> </form> Hi, I want to create a page that has a form designed to look like a form that members have to now fill out manually (eg registration for an event). When I design the html page with the form submit on it, how can I make the emailed form look like the html page that the user saw instead of just lines of data? This is so people who recieve the form via email, it will look like the original form. Thanks Jaden i have a paypal button code which is basically a form that gets submitted the code for the button wud be like this HTML Code: <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="email"> <input type="hidden" name="item_name" value="cd name"> <input type="hidden" name="item_number" value="36676y"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="shipping" value="1.00"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="weight" value="1"> <input type="hidden" name="weight_unit" value="lbs"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="bn" value="PP-BuyNowBF"> <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="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> and i want to make a page that when it loads it submits that form and sends the values to paypal so it shows the payment page for my product i wanna do this coz most forums have disabled HTML in posts and i am advertising sumthing for sale so i wanna create a page for example sales... wud submit the info and redirect the user to paypal account that was submitted so basically how to activate the submit button on load event ? thanx I got a form from Response o Matic, then edited some of the HTML. I removed the link back to their website, but it deleted the Submit Button (at least when viewing in IE7 - its OK in Firefox). I put their link back, but the Submit button does not show!! Any ideas, i really don't want to repeat the form as it took hours to space it all out how i wanted it. Thanks Hey all. I haven't designed a website in over 5 years and am extremely rusty. I'm trying to create a contact form and i have a question. When i hit submit it opens up outlook and just fills in the too with the e-mail i choose and the body has the content of the form. I don't want it to do this. When i hit submit i want it to send the contents of the form to an e-mail of my choosing and then take you to another page that says "Thank You for your submission" or something along those lines. Right now i have: <form action="MAILTO:example@example.com" method="post" enctype="text/plain"> <h3>Please fill out the form below and someone will be in touch with you shortly.</h3> Name: <br/> <input type="text" name="name"/> <br/> City: <br/> <input type="text" name="city"/> <br/> State: <br/> <input type="text" name="state"/> <br/> Zip Code: <br/> <input type="text" name="zip"/> <br/> Phone #: <br/> <input type="text" name="phone"/> <br/> E-Mail: <br/> <input type="text" name="email" /> <br/> Comment: <br/> <textarea rows="10" cols="80" wrap="physical" name="comments"> </textarea> <br/> <br/> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form> What am i missing and how do i go about doing what i want? Thanks in advance!! I have never had this error before until now, where I am trying to submit a jQuery validated form, yet my submit button won't work, I currently am not using the input type submit button, even when I do use it though I get the same error as using a <a> link that calls a javascript function to submit the form, I have a duplicate of this code and it works fine on another page, but just not here. Here is my mess: http://motb.isgreat.org/ It probably is easier to just check the whole source, since my code is scattered. This website is targeted for WEBKIT BROWSERS ONLY! To navigate to the issue on the page itself, press the gold login button on the RIGHT, and try submitting the form, I know the join form doesn't work, since I am not done with the page yet. But the login form should target to http://motb.isgreat.org/login.php which has a duplicate of my form but it works, im really confused, it may be with my JavaScript. Any Help is appreciated. I know my code is messy, my excuse is only being 15, but yeah… at least most of it functions Hey I tried googling this earlier but didn't find alot. What i am trying to do is when someone visits my site they enter their username and a short message. I would like it to send to either a file located on my web site server, where it will store until I read it, or send an email in the background to me so I can read it later. I had an example I tried to use, and it seemed to work, however it did not store the information into the file or email it to me. If you have an example of this please reply. Thanks. Hey guys. This is my first post, so thanks in advance for any help I receive! I'm having some problems with a form I've created. The form itself, when submitted, doesn't actually have to be sent to a server, as it is just for a school project. However, to my understanding when you submit a form, the information that is collected from the form is appended in a string to the url at the top. My problem is that part of my form is not being sent. My code is below, the part of the form that is not being sent is the table that has the text boxes for date, item and quantity. Thanks again in advance for any help! Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--Name: Adam Rehill Student Number: 3010729 Course: ACS 2909 Assignment 2 Part 2 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Assignment 1: Part 2: Transitional DTD </title> <link href="assignment2.css" rel="stylesheet" type="text/css"/> </head> <body> <form action="" method="get" name="form1" id="form1"> <fieldset id="username"> <table> <tr> <td> <label for="fname">First Name:</label> </td> <td> <input type="text" name="fname" id="fname" value="Adam" tabindex="1"/> </td> </tr> <tr> <td> <label for="lname">Last Name:</label> </td> <td> <input type="text" name="lname" id="lname" value="Rehill" tabindex="2"/> </td> </tr> </table> </fieldset> <div style="float: right; width: 60em"> Purchased Items. </div> <br/> <table> <tr> <td colspan="2"> <table title="Purchased Items." id="purchaseditems" rules="all"> <tr> <th>Date</th> <th>Item</th> <th>Quantity</th> </tr> <tr> <td><input type="text" id="date1" style="width:10em" value="" tabindex="3"/></td> <td><input type="text" id ="item1" style="width:40em" value="" tabindex="6"/></td> <td><input type="text" id ="qt1" style="width:6em" value="" tabindex="9"/></td> </tr> <tr> <td><input type="text" id="date2" style="width:10em" value="" tabindex="4"/></td> <td><input type="text" id="item2" style="width:40em" value="" tabindex="7"/></td> <td><input type="text" id="qt2" style="width:6em" value="" tabindex="10"/></td> </tr> <tr> <td><input type="text" id="date3" style="width:10em" value="" tabindex="5"/></td> <td><input type="text" id="item3" style="width:40em" value="" tabindex="8"/></td> <td><input type="text" id="qt3" style="width:6em" value="" tabindex="11"/></td> </tr> </table> </td> </tr> <tr> <td> <fieldset id="osradios"> <legend>Select the operating system:</legend> <input type="radio" name="ros" id="ros1" value="windows" tabindex="12"/> <label for="ros1">Windows</label> <br/> <input type="radio" name="ros" id="ros2" value="unix" tabindex="13"/> <label for="ros2">Unix</label> <br/> <input type="radio" name="ros" id="ros3" value="macos" tabindex="14"/> <label for="ros3">Mac OS</label> <br/> <input type="radio" name="ros" id="ros4" value="atari" checked="checked" tabindex="15"/> <label for="ros4">Atari</label> <br/> <input type="radio" name="ros" id="ros5" value="beos" tabindex="16"/> <label for="ros5">BeOS</label> </fieldset> </td> <td> <fieldset id="oscheckboxes"> <legend>Select the operating system:</legend> <input type="checkbox" name="cos" id="cos1" value="windows" tabindex="17"/> <label for="cos1">Windows</label> <br/> <input type="checkbox" name="cos" id="cos2" value="unix" tabindex="18"/> <label for="cos2">Unix</label> <br/> <input type="checkbox" name="cos" id="cos3" value="macos" tabindex="19"/> <label for="cos3">Mac OS</label> <br/> <input type="checkbox" name="cos" id="cos4" value="atari" checked="checked" tabindex="20"/> <label for="cos4">Atari</label> <br/> <input type="checkbox" name="cos" id="cos5" value="beos" checked="checked" tabindex="21"/> <label for="cos5">BeOS</label> </fieldset> </td> </tr> </table> <br/> <input type="submit" value="Submit" tabindex="22"/> <input type="reset" value="Reset" tabindex="23"/> </form> <br/> <iframe src="../Part 1/Strict.xhtml" width="400px" height="260px"> <p>Sorry, your browser does not support frames. Click <a href="../Part 1/Strict.xhtml" target="_blank"> here </a> to view this content on a seperate page. </p> </iframe> </body> </html> I would like to create 2 buttons for my form. The 1st button named "Submit Ads" would be a submit command and go to one page upon click. The second button named "Continue >>" would be a submit command and go to different page upon click. How can I do this? Your help would be greatly appreciated! |