HTML - Using Two Onsubmit Actions?????
The php action script below "recieved2.php" is a pop up window. Once my users put in their information and hit submit it pops up a window saying thank you which is the recieved2.php.
I want to know if I can have the main page redirect to another page on submit while having my thank you message pop up at the same time. Thank you Code: <form action= "received2.php" method="post" name="form1" target="_blank" class="style1" > Similar TutorialsHey Guys. I built my own java carousel for a site im building and it works great but id like to add secondary links to address a certian "slide" in the carousel. Meaning i need the link to go to a certain page and run the jave script to tell it which slide to display. Any ideas. Hi guys, I want to create a "one click - two action" link within my site, but I can't seem to find out how to do it... I've got some DJ mixes in RealAudio (.ra) and when someone wants to listen to the file I want a 'openwindow' or 'popup' to open at the same click (as the RealPlayer opens and starts playing). In the window that opens I want to display the track listing of the mix. I got some suggestions with something like this: <A HREF="javascript: openWindowSized('http://www.webpage.com/mix.html',300,350); http://www.webpage.com/mix.ra">Listen here</A> But that's not working and I'm not all that great at HTML and I can't seem to figure out how to do this... Anyone have an idea?! THANKS ! C. 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 Hey, I'm working on my own site, i was working on a register page. Worked very nice, no problems with it. But now i got a new option i want to add in the same register-form. So my question is: Is it possible to add an action to a form? So 2 actions in one form. Thx. Basically 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 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 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 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? helllo, again i have a website where there is a link to a *.PDF form, The customer can fill in the form and hit "submit by mail" , it works perfect i recieve that data via email xml. but NOW, I've had some customer that don't have email access and want to be able to submit the form via internet.. i know it can be done, i have read lots on that issue via adobe website.. but i really dont understand the steps, the way they explain it is very complex and i would like someone to guide me if there is a short cut or atleast tell me step by step.. i use adobe professional 8 and I have adobe livecycle too.. please help, thanks I have designed this page http://www.colletts.co.uk/submit/upload.shtml allowing our staff to upload doc's and photos back to the office easily for blogging and tweeting. When you click the submit I wanted to display a shadowbox with a loading.gif until it redirects to the submission success page http://www.colletts.co.uk/submit/sub...n_success.html Any ideas? Mas i've designed my page as: HTML Code: <div class="yesVisible" id="loginFormDiv" name="loginFormDiv"> <form method="get" id="loginForm" name="loginForm" onsubmit="validate(this)" > <input type="text" size="10 /> <img src="login.gif" name="loginImg" id="loginImg" /> </form> </div> And the validator function is as follows: Code: function validate(form) { var v= document.getElementById("loginFormDiv"); // print a line saying loggin in and show an icon in the login div v.innerHTML=" <h1> loging in... </h1>" + "<img src=\"loadin.gif\" />" alert("validating"); // later other ajax code will be here return false; } But unfortunately this code is not working...........What should i do ???? This code is intended to let users a feeling that they are loggin in...... The website will be made for: http://www.favourite9site.com/blog 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 Hey all ! I'm looking to make some simple feature but i don't know how. What I'm trying to do is, making my button to preform some action and stay in the same URL. I'll explain: Suppose i have "main.html". In there i have a button, which is defined something like: <input type="submit" value="send"> and this button is under a form with action like: <Form action:"localhost:10000/SomeService/SomeMethod"> The problem is, that by clicking on Send, the URL changes to "localhost:10000/SomeService/SomeMethod" and i would like to see the result on main.html. The method "SomeMethod" returns a new "main.html" HTML generated page with its results and i get this page great, but i would like to keep it under the source URL. I hope i explained my self well Anyone knows about it? I don't know how to use JS (the code is in JAVA) so please try to help me in different ways (if there is any)... Thank you all! Hi guys. I have no idea which category to post this in, or if it's even possible to achieve, so think of it as a challenge to your web skills In Visual Basic you can build a routine that checks a value (such as today's date). If today's date matches the date stored then an action will occur. My question is, can this be done with a web page? I'd like an index page to be active until a certain date, and after that date I would like it to automatically redirect to a different page which carries a message for the user. The page should operate completely normally until the date I set is reached, with no sign that anything is going to happen. Once the date is reached, anyone calling the index page will be instantly redirected to my message page instead. What do you think? Is it a possibility? hello, I have a form it works perfect, i use natemail, however i wanted to know if there is a way that when the customer hits submit and they get that thank you page, if they can also get a "generated tracking number or referece number".. or something of that sort.. if someone can help me please reply... I can post my scrip.. even though I have Previously, posted this tread in php scrip, lots of view but no one has posted any reply, can some just tell me if its possiable? or is there anything similar, i need some guidence... thanks I have an HTML button on my webpage. When the button is clicked it opens the URL link. <input type="button" value="home" onclick="main.location.href='http://www.srisri.org'"/> I want to modify the button such that after clicking the button not only opens the webpage but also the font of the button changes to bold red. Hi All, I am new to the board and new to HTML. I was hoping someone could help me out with this problem I am having. If you click the link below and click "like" (you can unlike right after, I just would like to show you something on the page) and scroll down to What's on the menu. Could you please help me with how to create something like this. What I mean by this is notice how when you click on one of the red dots it brings you to a different recipe on the page. Any help would be amazing and greatly appreciated. Please let me know if i need to specify more. Thanks so much! http://www.facebook.com/saraleedeli?...81140685241673 Hi, I've set up a pop up calendar which I want to use to generate a delivery date that is then displayed on another page. I've set up the calendar and when I choose the date from the calendar it's stored in a field. You can see it he http:// www. market-stalls .co. uk / calendar / deliverydate . html Is there any way I can use a submit button and onSubmit to store this data and print and display it on another page? Thanks! hello, please help me! I created my wesbite using Dreamweaver 8, and i am having problem with a "form/submit" option. I've created a form inside a "DIV layer"(inorder to be able to move around). I want the form to be able to ALERT the customer that he/she is missing a "required" field, when they hits SUBMIT BUTTON and be able to go back and "enter it" and then when they hit the SUBMIT BUTTON and all the required field are listed then it will SUBMIT the form and OPEN the POP UP WINDOW. NOW here is the problem both scrips are working but they are conflicting each other, When I go to my site and HIT the SUBMIT BUTTON without entering any fields A POP UP WINDOWS comes up and tells me i am missing the field "WHICH is what i want" but then instead of letting me go back and enter the field, it automaticly submits the form and a NEW WINDOWS comes up with the "forms submission result" and I then recived an email.. Now what can I do to correct this? How can i make it work properly? is there another simple script? i thought maybe the problem is on the ONSUBMIT action? If i have to re-write everything again i am willing to do so! I just don't understand, why does it submit the form if there are "required" fields missing? why doesn't it let me go back and type in the field and then do the rest? Please HELP here is the page where my form is located at : http://www.towone.com/formstest56.html and here is the script: </style> </head> < form action ="http://towone.com/cgi-sys/FormMail.cgi" method="POST" onsubmit="return (checkrequired(this)|createTarget(this.target));" target="formtarget"> <input type="hidden" name="recipient" value="danay@towone.com" /> <input type="hidden" name="subject" value="FORM REQUEST" /> <script> function checkrequired(which){ var pass=true if (document.images){ for (i=0;i<which.length;i++){ var tempobj=which.elements[i] if (tempobj.name.substring(0,8)=="required"){ if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){ pass=false break } } } } if (!pass){ alert("One or more of the required elements are not completed. Please complete them, then submit again!") return false } else return true } </script> <script type="text/javascript"> function createTarget(t){ window.open("", t, "width=600,height=550"); return true; } </script> <body> -------------AND THEN FOR THE FORM IN WHICH IS INSIDE A DIV LAYER------ ------------------------THIS IS THE SCRIPT:------------------------------- <div id="Layer8"> <form action="" method="post" name="form1" class="style3" id="form1"> <strong>Request form to be sent to you via?</strong> </p> </strong> <label>NAME: <input type="text" name ="requiredNAME" /> </label> <p> <label>EMAIL: <input type="text" name ="requiredEMAIL" id="email_add"/> </label> </p> <p> <label>FORM: <select name="Form"> <option selected="selected">Select FORM</option> <option>Pickup Order Form</option> <option>Credit Card Form</option> <option>Quote Request</option> <option>IRS W-9</option> <option>Company Package</option> <option>Truck Insurance</option> </select> </label> </p> <p> <label>SEND VIA: <select name="Recieve_Via"> <option>Email</option> <option>Fax</option> </select> </label> </p> <p> <label>FAX: <input type="text" size="3" maxlength="3" name="area" /> - <input type="text" size="3" maxlength="3" name="prefix" /> - <input type="text" size="4" maxlength="4" name="extension" /> </label> </p> <p align="center"> <input type="submit" name="Submit" onSubmit="return checkrequired (this)" "value="Submit" /> <input type="reset" name="Reset" value="Reset" /> </p> </form> </div> Hi there! Anyone know where i would put this: onsubmit="return checkForm();" I think the code is right below! Feel free to hack away if anyone sees any problems? Matt PHP Code: <form ACTION="http://www.thisisnep.co.uk/commercialscripts/andfeedback.asp" METHOD="POST" enctype="multipart/form-data" NAME="OnlineEnquiryForm" id="OnlneEnquiryForm" > <INPUT TYPE="hidden" NAME="FH_toaddress" VALUE="hurley_@hotmail.co.uk"> <INPUT TYPE="hidden" NAME="FH_subject" VALUE="OnlineEnquiryForm"> <input type="Hidden" name="FH_redirecturl" value="http://www.matthurley.net"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right">Full Name:</td> <td> </td> <td><input name="Name" type="text" id="Name" size="40" /></td> </tr> <tr> <td align="right"> </td> <td> </td> <td> </td> </tr> <tr> <td align="right">Email:</td> <td> </td> <td><input name="Email" type="text" id="Email" size="40" /></td> </tr> <tr> <td align="right"> </td> <td> </td> <td> </td> </tr> <tr> <td align="right">Contact Telephone Number:</td> <td> </td> <td><input name="Telephone Number" type="text" id="Telephone Number" size="40" /></td> </tr> <tr> <td align="right"> </td> <td> </td> <td> </td> </tr> <tr> <td align="right">How did you hear about Us:</td> <td> </td> <td> <input name="How Did You Hear About Us" type="text" id="myMandatory1" value="<Please Fill In>" size="40" mandatory="1" /></td> </tr> <tr> <td align="right"> </td> <td> </td> <td> </td> </tr> <tr> <td align="right" valign="top">Any othe comments...</td> <td> </td> <td><textarea name="Comments" cols="40" rows="10" id="Comments"></textarea></td> </tr> <tr> <td align="right"> </td> <td> </td> <td> </td> </tr> <tr> <td align="right"> </td> <td> </td> <td><center> <input type="hidden" name="action" value="1" /> </font> <input type="submit" name="Submit" value="Submit"/> </font> </td> </tr> </table> </form> |