HTML - Redirection Based On The Variables Of A Form
Hey guys,
i'm just starting up with html, and am having a few problems. I have a php file titled "stats.php" that return results when you direct your url to: /stats.php/default/dricho Its a dynamic sig generator through a php file. I have created a form that allows you to simply add in the details so that it generates the link for you. But i am having an issue. here is the form: HTML Code: <form action="http://www.domain.com/sig/stats.php" method="post"> <select name="background"> <option>maple</option> <option>default</option> </select> Name: <input name="rsn" type="text" /> <input type="submit" /> </form> How can i make it so teh results open a link based on teh items chosen? i.e. if i chose maple and input dricho it would direct the url to: "/stats.php/maple/dricho"? All help is greatly appreciated, Daniel Similar TutorialsHi, I wonder someone could just point me in the right direction on how I may achieve this and can then read up on and give it a go?.. Basically I want to create a "form" on my web site that helps show how a somewhat complicated sporting play off system would work depening on where teams finish and who beats who in the play off system. What I want to start is six choices with drop down lists that allowed people to choose each of the six teams and where they finish in positions 1 to 6. When they do this I would like it to put that team in another selection where they can choose which team will beat who in the next play off game and advance until the final so they can see how it would pan out.. e.g. 1st - TEAM Z (chosen from drop down) 2nd -TEAM V 3rd - TEAM Y 4th - TEAM U 5th - TEAM X 6th - TEAM W Play off game (1st v 6th) TEAM Z (please select who you think will win) v TEAM W . . Final TEAM Z v TEAM U Hope that makes sense.. Like I say any pointers in the right direction so I can try it out.. I have Frontpage 2000 if that helps but not extensions on the server Thanks for the help.. I'm working on my site www.fastvacationrentals.com and I've been trying to find or deveolp (I don't know how hard this would be a word based text editor to add onto a text field. Such as the one they use on this site when we respond to messages. I don't know if there is a easy javascript, html, or php script out there that is free to use. I've tried to search for ones and have not had much luck. I only think I'm interested in ones that do not have advertisment shown. I did find a couple that looked just liked microsoft word in the text box with no tags added as this does then converts it all to html before it posts. Would have worked great if hadn't of cost anything/advertisments also. The other thing I'm having problems with is when people create listings they choose the location for where there cabin is at. States are easy but when you get to cities people spell things wrong and it doesn't look good in the results nor the search. I've seen sites where you select the state then it changes and shows all the cities there. Is this something I can get premade also for free. I know exactly how to make it but I also know that I wont be able to cover all the cities. Having all the correct cities names spelt the same would make my search work better with the database. Thanks for reading all of this and I hope someone has some good advice/answers. BTW I'm sorry you cant exactly see the form your working on since you have to be a user but I'm sure you'll know what I'm talking about and if you don't feel free to make a account and look around. In a regular form with text fields, can I pass the imput from the user directly into a hidden textarea from multiple fields intertwined with html? Example: <form> <input type="text" name="firstname"> <input type="text" name="lastname"> <input type="text" name="occupation"> <input type="hidden" value="some html + firstname + some html + lastname + some html + occupation"> </form> I think this might require some javascript. Is something like this possible? I'm looking to write a form with input fields which, upon submitting, would post to a specific forum. Now, I'm not sure if this is some kind of javascript trickery or something (I am far from familiar with JS). Here's an example of this page: http://www.violentrevolution.net/e10...y/survey.php?2 Now, what happens upon submitting that forum, the information is posted to a forum where clan members can discuss the application. I'm looking to replicate that function, but I've gone over the code and I can't seem to see the modularity of it (i.e. changing the forum to which it posts). Thanks for any help in advance. Hi, I have a page that uses AJAX to set a variable, the variable is either true or false. On the page there is a form with a text input, i would like the variable to dictate whether the element is read only or not. So instead of: <input name="cd" value="title" readonly="readonly" /> I would rather something like: <input name="cd" value="title" readonly="$lock" /> Note: I am aware that $lock is PHP but I am not familiar with the syntax in this instance. Thanks in advance, Tom Hey guys, I'm fairly new to programming web forms on my own. (I've used some Joomla/Mambo components that eased the process). I understand the basics of forms and what not, but was curious as to what the best way to pass variables from an email (pre-filled) to a form would be without using Server-Side Scripting of any kind. (I could easily write a PHP page to do so, but on this specific project I don't have access to any kind of scripting on the server side). I have thought about doing it one of two ways. The first way would be to write some Javascript that saves the fields I need as cookies and then calling those cookies back on the webform. The other way, was to pass the variables through the URL. I don't know if this is possible without Server-Side Scripting or not. I'm sure I could hack up some sort of Javascript code to read the URL and break it into the relevant variables but that seems like a lot of work for something so simple. Is there a way to use the GET method at all to pull those variables from the URL? Also, sorry for not posting this in the Client-Side Scripting forum, but I wasn't sure if there were other solutions to this problem that wouldn't require any scripting at all. Thanks Again, -Ian- I am using a form to submit a name and password for log on. The form is using password type fields. However, once the form is submitted the results are showing in the url query string of the return page. How do I prevent this? Hi! I've been trying none end to get this form working for a friend..I always get the same error - Here's the code, it points to a script with www.godaddy.com (can anyone please look into it?) Thx!! <form name="contact" method="post" action="gdform.asp" enctype="multipart/form-data" id="form"> <input type=hidden name="recipient" value="exquisitetaramtl@live.ca"/> <input type=hidden name="subject" value="Online Inquiry"/> <input type=hidden name="redirect" value="http://www.exquisitetara.com/index3.html"/> <table style="width:515px; height: 149px;" class="style19"> <tr> <td style="width:210px"> <table style="height: 155px"> <tr> <td style="">Name: <br /> <input name="name" type="text" /></td> </tr> <tr> <td style="">E-mail: <br /> <input name="email" type="text" /></td> </tr> <tr> <td style="">Phone: <br /> <input name="phone" type="text" /></td> </tr> </table> </td> <td style="">Message: <br /> <textarea name="message" style="width: 336px; height: 107px"></textarea> <div style="text-align:right"> <span><a href="#" onClick="document.getElementById('form').reset()">clear</a></span><img src="images/spacer.gif" alt="" width="26" height="1"/><span><a href="#" onClick="document.getElementById('form').submit()">send</a></span></div> </td> </tr> </table> </form> Hi Guys, I have a website which has an iframe and inside that frame is the web content. Now when I want to do a website redirection using the META tag method the new site loads inside the iframe, I dont want this to happen, I want the whole site to goto the new site. How can I do this ? I'm using geocities free btw. I am trying to make links on my website like one of the following: example.com/promo All I did was take away the .html from the ftp page. Everything is fine when I access the page with IE, but Fire Fox just displays the html code because it is not .html at the end. How can I make these pages without having to have .html at the end, but with fire fox recognizing it as a html document? Let me know if I need to explain myself better, Thanks I am after the html code to redirect the surfer from an address to a new address so I guess I have an index file with code at site 1 then when surfer goes there it automatically [hopefully without him/her knowing] just diverts to site 2 See error image: http://img692.imageshack.us/img692/5861/redirection.jpg I have no idea what this means, I can't add a wildcard redirect from my .net to .com domain. It had worked before, the redirect was deleted, and now I can't add it back. See public_html folder: http://img534.imageshack.us/img534/3938/publichtml.jpg Opened a support ticket, the guy doesn't know what he's talking about. He's telling me to go back to the redirect section and add the info (that I already tried). Any ideas? Hi! I have a problem. My homepage, what is under construction at the moment, is only viewable without errors with Explorer. I want to insert a javascript to the index.htm file, that redirects the visitors, depending on their browser. I am currently trying this: <script language=Javascript> if ((navigator.appName=="Microsoft Internet Explorer")&(navigator.userAgent.indexOf("Opera")==-1)&(navigator.userAgent.indexOf("Netscape")==-1)&(navigator.userAgent.indexOf("Mozilla")==-1)){document.location.href="good.htm";}else{document.location.href="wrong.htm";} </script> The indexOf stuff is needed, because Mozilla, Netscape and Opera would trick the script, because they make themselves look like Explorer. ...But this still doesn't work right, because now this script redirect every browser to "wrong.htm" (even explorer). I would be very thankful, if somebody would help me out with a working script. Hi guys im new here , hope this is in the correct place , sry if its not. Im trying to redirect a link . I have an image on another forum in my signature. i have it linked to already using [url=http " web page here "][img] "my signature image here" [/img] So currently when someone clicks my signature image it redirect them to the web page that its linked to. But what im looking for is , when someone clicks my signature image i want it to go to a single web image first ( for a 5 or so second delay) and then automatically redirect to the link. Anyone got any ideas how to do this , thank you all hope you can help me Hi - I'm really new to HTML and web design in general. What I'm trying to do is to set up a website where the home page is a disclaimer (page 1). The user presses the "Accept" button and is taken to the next page (page 2). Lets say a user copies the url for page 2 and emails it to a friend. The friend clicks on the link and bypasses the disclaimer. How can I have that page redirected to the disclaimer on page 1, but not have page 2 redirect to page 1 if the accept button is pushed. I hope I explained that adequately (but I doubt it!). Thanks for the help, I don't want my page to redirect automatically, but I have a link on my old website's URL that says "Click Here to be taken to my new URL" and I was wondering, if my previous website has pages like mywebsite.com/randompost1393 is there a way to link it to newURL.com/randompost1393 but not JUST on that one page, on all of my pages? Like just coding one link on my previous URL so that no matter what page I'm on, it just switches over to the same page but on my new website? Like if its on the home page which is just mywebsite.com/ it should go to newURL.com/ and if its on /page/3 it should go to newURL.com/page/3 I hope this makes sense, sorry if it confuses you. Hi, We are going to open few vacancies in our website. We create a separate link to apply for each position in website. So for each position, there will be a buton APPLY NOW for example. What we need now is to create a script if possible, that when people apply depends in position, mail goes to certain subfolder in our mailbox. Basically it'll have to do the job of rules in MS Outlook. We don't want to create rules, because people usually don't write in subject line (for example) as we advise them in order rule to function properly Thank you Hi, I webmaster a web page at, lets call the address: www.ourlittledivision.bigcompanydomain.org. Here (at our company) I have all files of the web page, including a functioning favicon. I have also complemented with a more readable web address, lets call it: www.ourlittledivision.com. This second address simply redirects to the first address mentioned above. This domain with its redirection is located at an external web hotel. These two alternative addresses means you can reach the web pages either way by just writing either the first or the second url. My question is that the favicon appears fine if you use the first address, but not if you use the second. The favicon seems to be lost in the redirection, and just IEs default icon is shown. The web hotel should not be blamed. I use it for other web pages where the favicons work, but they are not redirected. My picture favicon.ico lies just next to the index file in the root, not in any of the folders. The code in the index file is simply: <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> So, can anyone mediate...? Somebody out there must have seen this phenomena. I guess there are more than I that could be helped by a solution to this question... Best regards Stonechat I need to do a redirection without breaking frame...does anyone know the code for this? I am using: <head> <script language="javascript"><!-- location.replace("pagename.html") //--> </script> ...other head section stuff (Title, Description,etc.)... </head> Thanks!!! |