HTML - Form Redirect
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 Similar TutorialsHey 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'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) 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! 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? 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 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 HTML code to redirect mistyped urls? Let's say someone wanted to get to a music section of my site. They type in XXX.com/music instead of XXX.com/music.html. Any way to get this done? Hello all, So I am doing site management, and I have a problem with a redirection that is going on. There is a directory in the root called venngo (http://url/vengngo/) however it redirects to a different page all together, so I removed the folder, uploaded a new one, and it still redirects. I have checked my cache and multiple machines, so I know it is not on my side. The only time my page works is if I physically add /index.php tot eh directory to make it (http://url/vengngo/index.php) What should I be looking for in the files for the website for a possible redirection script. Maybe htaccess? Hi I want to know what main difference is between 301 redirect and 302 redirect. I redirected my site permanently (301) to another site and I lost all my original hyperlinks on the old webpage. If I want to keep all previous links alive, what should I do? Thanks! Redirect might not actually be the thing that I'm looking for, but I here's what I'm looking for. When you visit the website, and image is shown taking up the whole page. It stays for 2-5 seconds, then redirects you to the normal home page. (Maybe the image would also be a link to the home page so people could speed things up) Thanks very much. I went to a site for optimization & on review it told me my site had a re-direct, which was bad. Its been awhile since I tinkered with my site, so beats me where I put it. Can anyone help find out where it is? Newbie to this forum. Thanks. website is: kallico.net Thanks for any help on this, or anything else to help it get noticed more. I have a situation where I snd peoplle to a different page to do a download and I want them to be redirected back as soon as the download completes. Is there a command for that? can someone tell me how i would go about creating a redirect for an old RSS feed. i want the old feed address to point to my new Wordpress-created RSS feed address. i searched around a bit and found this code snippet... Code: <?xml version="1.0"?> <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> ...but when i put it in place of my old feed code, here was the browser result... Code: This XML file does not appear to have any style information associated with it. The document tree is shown below. <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> am i doing this wrong? what is my best option? hi, i need some help with this. the following line is in a script <META http-equiv='refresh' content='1; URL=http://lblah.com/radio.php?ipp=84.95.247.20&port=22930&ch=898'> now this script redirects to another page.. is there some way i can get it to do this without actually leaving the page im on. thanks in advance for your help Hello I'm redirecting pages using 301 redirect in my htaccess file, like redirect 301 "/servicesxxx.php" http://www.site.com/services.php but I have a page like this: www.somename.site.ca/indexpage.php I tried putting the whole thign in there but it doesn't work. How can I successfully redirect that page? hi how do u use a redirect 301 code in html file in a website ? and wat is the use of that ? I have a link going direct to pdf documents on one site eg www.one.com/blah.pdf. The pdf's are moving to a new web site www.two.com/blah.pdf. How do I redirect people that link direct to the old pdf to the new one. These pdfs are coming up very high in Google. I was hoping if I changed them to redirects Google would follow. Also for those that have a link in their web site to these pdfs it will be broken when I move them to the new url. |