Jump to content

Search the Community

Showing results for tags 'form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. My php contact form wont send the emails to my account?This is my contact from page<table width="400" border="0" align="center" cellpadding="3" cellspacing="1"><tr><td><h2><strong>Contact Form </strong></h2></td></tr></table><table width="400" border="0" align="center" cellpadding="0" cellspacing="1"><tr><td><form name="form1" method="post" action="send_contact.php"><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td width="16%">Subject</td><td width="2%">:</td><td width="82%"><input name="subject" type="text" id="subject" size="50"></td></tr><tr><td>Detail</td><td>:</td><td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td></tr><tr><td>Name</td><td>:</td><td><input name="name" type="text" id="name" size="50"></td></tr><tr><td>Email</td><td>:</td><td><input name="customer_mail" type="text" id="customer_mail" size="50"></td></tr><tr><td> </td><td> </td><td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td></tr></table></form></td></tr></table><p> </p></form>This is my php code for the contact form<?php// Contact subject$subject ="$subject"; // Details$message="$detail";// Mail of sender$mail_from="$customer_mail"; // From $header="from: $name <$mail_from>";// Enter your email address$to ='gareth.joynt@go.edgehill.ac.uk';$send_contact=mail($to,$subject,$messa…// Check, if message sent to your email // display message "We've recived your information"if($send_contact){echo "We've recived your contact information";}else {echo "ERROR";}?>Please help thanks
  2. Hello internet. I would like to start off by saying that W3Schools forum and all you great programmers that respond to these topics is INVALUABLE!!! Thank you so much. Here is my problem... I currently have only one form for my site<form name=tourney action="m m_post_process_4.php" method="post" onSubmit="return checkit()" target="_blank"> When all the requirements have been met (through the checkit function) the form is sent to the PHP file for processing. However, I have two submit buttons and would like each button to process a different function - one for checkit and one for checkit2. This may seem odd because you may say combine the two functions into one function but the problem I am running into is that I cannot seem to get the element ID during a submit action. If I could I would combine the two functions and run comparisons to do all the work. However, the PHP output keeps telling me "Undefined1" for the ID value I am trying to compare. Any thoughts?
  3. I am having problems with getting the right syntax in Javascript to access and array set up in a form (for check boxes) via getElementById The setup on the form works fine because I can access it in PHP no problem. But can't get the syntax right in JS setup in PHP as followes while($row = mysql_fetch_row($result)) { print "<input type ='checkbox' class = 'selectedsurvey' id = 'SelectedSurveys[".$x."]' name = 'SelectedSurveys[".$x."]' checked='checked'/>"; print "<label>$row[1]</label>"; print "<br/>\n"; $x+=1; } They are read from a database of surveys My code in JS for(i=0;i<numberofsurveys;i++){ test = document.getElementById("SelectedSurveys"[i]); if (test.value == "on") { errmsg = errmsg + "'" + test.value + "',"; anychecked = true; } }if (!anychecked){ errmsg=errmsg+"Error: A site must contain at least 1 survey.<br/>"; } Any help much appreciated. PS test is already defined in a var earlier.
  4. Hi, I am busy testing out a lightbox form that I'm working on and I've got all to work except the "success" or "thank you" page.Basically I want the user to fill in the online form and when the they are click 'submit', the "thank you" message or page resolves in the same lightbox that the form was in. Go to www.testing123.co.za/test.htm and click on that link you see saying "AJAX SuperBox".The lightbox is opening up an HTML page within in the test.htm page (basically acting like an iFrame?).When I click submit, the page resolves to the success.htm page (which it should) but not in the lightbox frame. I don't want visitors to leave the test.htm page. My headers at the bottom of my process php form shows as: '; $headers = "From: $from\r\nBCC:{$bcc}\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($to, $subject, $sBodyNew, $headers); header('Location: http://www.testing123.co.za/success.htm'); ?> I assume the Location url above needs code added to it so that it works within the lightbox? Or is there an easier way to do this? Thanks guys!
  5. I am trying to create or form or even see if it is possible to have an html form where you have multiple check boxes and based on the selection of the check boxes it will send an email to different addresses.... Example: Checkbox 1 - person1@test.comCheckbox 2 - person2@test.comCheckbox 3 - person3@test.com Lets say I check box 1 and 3 on the form and I want an email created when I hit the submit button to have person 1's and person 3's email address in the TO field. Is this possible at all or does it even make sense? Thank you for taking the time to look at this.
  6. I'm looking to redo a form I have on my website. Currently the forms allows for users to select each separate category, and then when they click the value directs them to a url value in that category: Excerpt for current form: <form name="miscellaneous"><center> <select name="menu" class="airplanefoodsearch"> <optionvalue="/images/lounge-food/">AIRLINE LOUNGE FOOD</option> <optionvalue="/images/amenity-kits/">AMENITY KITS</option> <optionvalue="/images/air/cabins/">CABIN INTERIORS</option> </select> <input value=""onclick="location=document.miscellaneous.menu.options[document.miscellaneous.menu.selectedIndex].value;"type="button"> </center> </form> ********************This form works fine for users to browse each category. But now instead I would like to change the form to a search form. and this is what I came up with: <form name="search" method="get"action="/images/page/search/" ><center> <select name="airline" class="airplanefoodsearch"> <option"united">UNITED AIRLINES</option> <optionvalue="delta/">DELTA AIRLINES</option> </select> <select name="menu" class="airplanefoodsearch"> <optionvalue="lounge">AIRLINE LOUNGE FOOD</option> <optionvalue="amenitykits">AMENITY KITS</option> </select> <input type="submit" value="Submit" /> </center> </form> The issue is that when directed to the search url it adds extra characters= ? & etc. Is there anyway to tell the form, when you hit submit to go to: images/page/search/united+menu rather than: images/page/search/?=united&menu Because my search engine does not recognize any other characters other than the word, space, or the "+" sign. Any help or guidance is appreciated. I'm a newbie so please be nice.
  7. Hi All, I've written some Javascript that will dynamically add "file" inputs to a form. They show up on the page just fine when the add control is clicked. But, when I submit the form, those dynamically added form fields are absent from the form structure on the receiving page. They're also absent from the form structure passed to the validation function. The added fields are added to a table within the form tags. The JS code adds table rows (TR). Then, cells are added to that row. Then, the file inputs to the cells. All this is done using DOM methods like appendChild(), createElement(), createTextNode(), etc. Is there some extra step needed to make sure the added fields are made part of the form?
  8. Ok, so I have 2 questions for the community.1. Is there a way to create a HTML form that will send an email to the MAILTO: recipient, but have the browser NOT auto-open the email app? I mean, after I hit submit, I would rather see a confirmation page that the email was sent rather than have an email app open. Any way to do that without using a third party form?2. Along a similar line with HTML forms, I wanted to know if I could make a form with different options (a dropdown box.) But I wanted to see if there was a way to email a different email address based on the option chosen? I'm sure it might require some Javascript (maybe) but I'm not sure.Thanks for any responses.
  • Create New...