HTML - How To Make A Submit Data And Return?
Currently im wishing to be able to have a text form box that i cna write in and it goes somewhere(a database maybe?) and checks if its the correct ansewer, if it is, it goes to the new URL if its wrong it comes up with an error messege and then goes back to the previous page.
How do i do this? Or at least START doing this? Similar TutorialsI have a php contact page that when people submit there message it goes to another page saying "thank you, your message has been sent" What I would like to do is have this thank you page pop up in a small 400 x 320 window and refresh the orignal page to my home page. Can anyone please help me do this? I do not know how to go about doing this. Thank you. How can find what string has been submitted from the HTML form when i click on submit button? My page contains several iframes and each contains a form. In IE (but not in FF), when I submit a form, the action page is shown in a new window. How can I make it so the action page is instead loaded inside the iframe? Hi I am trying to implement jQuery hovercard as specified he http://github.com/rrrene/tipsy.hovercard This code as an example uses data-url which specifies a html page that contains the html to use in the hovercard. But my site uses Smarty classes and so the images i want to show in my hovercard have already been found and the links loaded into variables. How do I turn this html Code: <a href="some.html" rel="hovercard" title="loading..." data-url="tip.html">Hovercard w/ AJAX Flavour</a> into a statement that reads from a bit script that can load using the variables already populated? I cant find anything on the web about data-url. Its all data:URL. Thanks Darren please help me guys!!! im trying to find a html code that allows people download a pdf files from the website that im trying to make..anyone out there help me.. Hi All: I'm making a online configurator so that users can customize the product. the question is : After people finish customization, can they save their choice so that when they come back, they can see their choice directly. Dear friends, I have a situation (may be silly but needed) as below When clicking 1.html should open http://myurl/2.html and return to 1.html again. I can do anything on 1.html but not on 2.html any advice? if html is not possible aspx pls? Thanks Bala Hello, I am trying to create a blog page on my website and after every blog entry I would like to include a top link, that would send the user to the top of the page, where the latest blog entry is located. Hi Experts, I am designing a webpage where based on the year selection the associated years webtable needs to be displayed in the webpage. Pls give som suggestions and if possible the code on to how to code this using HTML and Jav Script. I know I have to write afunction and then call the fn based on the input.but need your help on this. Thanks, Bsquare So I've got a form with some input text. In addition to the data in the input text I want to send some other data that has already been predetermined on initial page load. How would I declare the other data within the form element? Thanks Hi there, what should I do to get validated the following error? I have to validate it with XHTML 1.0 Strict. Please someone help me, thanks so much. Code: Line 39, Column 32: character "&" is the first character of a delimiter but occurred as data . onsubmit="return validateForm() & & validateMessage();"> This message may appear in several cases: * You tried to include the "<" character in your page: you should escape it as "<" * You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe. * Another possibility is that you forgot to close quotes in a previous tag. I have a simple window.showModalDialog code to bring up a dialog box. It works find until I close the dialog box and the initiating page moves to the top. Any ideas how to stop this: The code is below: <script language="javascript"> function popUp() {var url = "ipcc.php"; window.showModalDialog( url, "Intergovernmental Panel on Climate Change", "resizable:yes; scroll:yes; status:no; dialogLeft:100px; dialogTop:100px; dialogHeight:470px; dialogWidth:640px;");} Thanks. I've got a form setup where it takes the user to a new page when they submit their information. If they didn't enter a valid email address it tells them to go back and fix it. When returning to the page though all of the input fields are reset to blank. I found this script that fixes it. But I could have sworn that it was possible to remedy this without javascript. Am I wrong? I am trying to create a form where I can check boxes of skills to return results of how many "departments" i have checked have those skills. It would look something like this: Check box - Description of skill1 Check box - Description of skill2 Check box - Description of skill3 SUBMIT BUTTON Department | Skill1 | Skill 2 | Skill 3 | Total -------------------------------------------------- ABC________1_______1______0____2 XYZ ________1_______1______0____2 So I need a code where I can check the boxes that apply, hit the submit button and have a value box display in each department instance if there was a match of not (1 = match 0 = no) So if i checked box skill 1 and skill 2 there would return a 1 under skill 1 and 2 for each department and show the tally of that under the total. Can someone help? thanks! Hi everybody! I have a jsp page with a form and a table. My aim is that when i press the submit button of the form,collect the data and fill the table with it. I am working with J2EE. I have already collected the data in a Java class,but I dont know how to introduce this data into the table. Best Regards! I have been using my site for some time now and it carries the image name over when you clicked on purchasing the print. It carries it still, but when you submit the form, the image name isnt there and the form errors because the field is blank. Here is the site: www.sthompsonphoto.com I cant seem to figure out why it disappears when you click Submit? Any help would be great! I am to this forum and to html. In fact, i am learning html as i go. I am currently encountering a problem a submit.php When visitors to the page sign up they get an email with the requested info, however, I do not get an email with their info. I providing the code on here for my submit.php. Please help me identify and fix the problem. Thanks Don S. http://www.stocktraderspress.com/trial.php http://www.stocktraderspress.com/submit.php PHP Code: /******************************** * Send the user email message... ********************************/ $mail = new PHPMailer(); $mail->Host = "mail.stocktraderspress.com"; // Set the mail hostname here $mail->Mailer = "smtp"; $mail->SMTPAuth = true; $mail->Username = "stocktraderspress@stocktraderspress.com"; // Set the email account username here $mail->Password = ""; // Set the email account password here $mail->From = 'info@stocktraderspress.com'; $mail->FromName = 'STP Website'; $mail->AddAddress($_POST['em']); $mail->AddBCC; $mail->WordWrap = 100; $mail->Subject = 'Thank you for your interest in Stock Traders Press'; $mail->Body = $body; $mail->IsHTML(true); $mail->AltBody = @strip_tags($body); // This is a 'text-only' version of the message... if(!$mail->Send()) { echo "Mailer error: ". $mail->ErrorInfo; //exit; } /********************************* * Create database message body... *********************************/ $text = "<p>Email: ".$_POST['em']."<br>"; $text .= "First Name: ".$_POST['fn']."<br>"; $text .= "Last Name: ".$_POST['ln']."<br>"; $text .= "Phone: ".$_POST['ph']."<br>"; $text .= "Address Line 1: ".$_POST['ad']."<br>"; $text .= "Address Line 2: ".$_POST['ap']."<br>"; $text .= "City: ".$_POST['ct']."<br>"; $text .= "State / Province: ".$_POST['st']."<br>"; $text .= "Country: ".$_POST['cn']."<br>"; $text .= "Selected Offers: ".@implode(',',$_POST['selected_offers'])."<br>"; $text .= "Years In Market ".$_POST['years']."<br>"; $text .= "Portfolio Size: ".$_POST['portfolio']."<br>"; $text .= "Broker Type: ".$_POST['broker']."v"; $text .= "Mailing List: ".$_POST['yes']."<br>"; /******************************* * Create database email... *******************************/ $mail = new PHPMailer(); $mail->Host = 'mail.stocktraderspress.com'; // Set the mail hostname here $mail->Mailer = 'smtp'; $mail->WordWrap = 100; $mail->SMTPAuth = true; $mail->IsHTML(true); $mail->Username = 'stocktraderspress@stocktraderspress.com'; // Set the email account username here $mail->Password = 'stock###'; // Set the email account password here $mail->From = 'info@stocktraderspress.com'; $mail->FromName = 'STP Website'; $mail->AddAddress('clientservices@stocktraderspress.com'); $mail->AddAddress('chriscastaldo@aol.com'); $mail->AddBCC(''); $mail->AddReplyTo('clientservices@stocktraderspress.com'); $mail->Subject = 'Thank you for your interest in Stock Traders Press'; $mail->Body = 'The following request has been submitted'.$text; $mail->AltBody = @strip_tags($body); // This is a 'text-only' version of the message... if(!$mail->Send()) { //echo "Mailer error: ". $mail->ErrorInfo; //exit; } hi again i need some help how i can do auto submit in the loop (for) i need every time setvalue to input text and submit() <input type="text" name="text" id="Tes" size="12" /> i have this code but it doesnt work <script language =javascript > for ( f = 0 ; f<=100 ; f++ ) { document .getElementById ("Tes").value = f ; document .forms ["lname"].submit(); } </script> so please ned some help |