HTML - Emailing Form Problem
So i have a form i am trying to email when you click submit, but i don't like the way the mailto function works. So i am trying to use php to email the form. Then have the user directed to a thank you page.
The problem is when i click send it loads the sendmail.php page but its just a blank page and nothing happens. I can't figure out how to fix it. All help is appreciated, thanks. I have the form i am trying to email: Quote: <form method="post" action="sendmail.php"> <font face="Myriad Pro"><b>Name:</b></font><input type="text" size="24" maxlength="40" name="name"> <br /> <font face="Myriad Pro"><b>Email: </b></font><input type="text" size="24" maxlength="40" name="email"> <br /> <input type="submit" value="Send"> </form> </font> And then i have the sendmail.php: Quote: <?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "*****@gmail.com", "Form send", $name , "From: $email" ); header( "Location: thankyou.html" ); ?> And then i have a simple page that says thank you. Similar TutorialsI have written a form using HTML. This form will allow customers to customize their products. I am having a problem with attachments. I am not sure how to setup a spot for them to upload an attachment. After the attachment is uploaded i want them to be able to submit the document to me via email. I currently have the email setup as
HTML Code: <form action="MAILTO:CustomerService@trainorglass.com" method="post" enctype="text/plain"> Can someone please help me out and tell me if this is possible. I have a question concerning a image map. I am creating a best buy/circuit city like email advertisement that will be sent out to users/members of a website. The email contains images (products) that the user will click on and will be directed to that product on the website to purchase. My question is, how do you email an image map? Is it possible? Or is there another way I should go about this all together? I have the following code <p style="text-align: left;"><font size="4"><span style="font-weight: bold;"><font size="2"><u><em><select name="Rating"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select><br></em></u></font></span></font></p> <p style="text-align: left;"><font size="4"><span style="font-weight: bold;"><font size="2"></font><input value="Submit" name="naf ds" type="submit"><br></span></font></p> which created a menu with 5 options and then creates a submit button. See where i used it at http://groundzerostudios.googlepages.com/wip ( I am using google pages) Now i need it so when A person selects submit it saves the value some how and displays the amount of ratings and average rate, all this with google pages. Is this possible?. If the above is not possible at least tell me how I could automatically email it to GroundZeroStudios@gmail.com, also I do not want the same IP address to be able to submit it more than once a month, if that is not possible, than the same IP address can only ever vote once. Thanks a lot I want to have a Contact page in my website, and I was wondering if there was a way to include a built-in emailing system on the page so that poeple can directly send messages to me without having to type over my email adress in there own hotmail. Thanks in advance Sensen Hello geeks! i have a very simple problem, but cant solve by myself.. i have this html page on my site , which asks details like name , address etc but when people click on submit button the data entered on the page is not send anywhere , there is no html code written in that. i'll be much much happier if any one can also add captcha in my html code the direct link for my page www.linkinu.in/apply.html thanks Can someone tell me why my submit button is not open an email client. I uploaded the website http://unitedpop.host56.com . I input this <form method="post" action="auth@testing-email.com" > <input type="submit" name="submit" id="sumbit" value="Submit" /> <input type="reset" name="reset" id="reset" value="Reset" /> </form> Working on the next version of my site... Can't get any of the forms to align, example: www.bkriegtech.net/2008/?page=contact Ok I have a page with multiple forms on it. All the forms are coded like this. <form action="indexreport.cfm?fuseaction=casereport" etc. etc. But for some reason one of the forms I had to code like this in order to make it work. <form action="/sales/indexreport.cfm?fuseaction=demoreport" etc. etc. Why in the world did just this one form require me to add the directory like that. All the other forms are working just fine without it. This has been vexing me all weekend, I really hope somebody can crack this one.. Thanx!! Hi I have designed a form using MS publisher. When i post it to my web site all it does is give me an error ( 404 page not fond ). could something wrong in my form or is it my web site. I want the data to be saved on the same page that the form is at. I did convert this to HTML be for add it to my web site. Thanks paul creating a form but having a problem with the "checked" attribute. According to the book, this html below is correct but on the page, the other option "wholebean" is always checked when reloading the page, where's the problem please? Quote: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>The Starbuzz Bean Machine</title> </head> <body> <h1>The Starbuzz Bean Machine</h1> <h2>Fill out the form below and click submit to order</h2> <form action="http://www.starbuzzcoffee.com/processorder.php" method="POST"> <p> Choose your beans: <select name="beans"> <option value="House Blend">House Blend</option> <option value="Bolivia">Shade Grown Bolivia Supremo</option> <option value="Guatemala">Organic Guatemala</option> <option value="Kenya">Kenya</option> </select> </p> <p>Type: <br /> <input type="radio" name="beantype" value="whole" />Whole bean <br /> <input type="radio" name="beantype" value="ground" checked="checked" /> Ground </p> <p>Ship to: <br /> Name: <input type="text' name="name" /> <br /> Address: <input type="text> name="address" /> <br /> City: <input type="text" name="city" /> <br /> State: <input type="text" name="state" /> <br /> Zip: <input type="text" name="zip" /> <br /> </p> <p> <input type="submit" value="Order Now" /> </p> </form> </body> </html> www.bkriegtech.net/?page=contact no longer checks for the required fields... what would cause this? This is my first form so to speak and i am having a problem. I am trying to have the form data send to an email address when the user clicks submit. However, when i tested it i receive a Postdata.att file...instead of the form data in an email. I dont know what i am doing wrong. Is there an easier way to do this. I would greatly appreciate some help! Here is my code: form id="form1" name="form1" method="post" action="mailto:caleb@meshowventures.com"> <label>Full Name:<br /> <input type="text" name="Fullname" size="50" value="" /> </label><p> <label>Email Address:<br /> <input type="text" name="Email" size="50" value=""/> </label><p> <label>Interests:<br /> <textarea name="comment" rows="6" cols="40"></textarea> </label><p> <label>Would Like a Yard Sign: <input type="radio" name="YardSign" value="Yes"/> </label><p> <INPUT TYPE="submit" value="Submit"/> <INPUT TYPE="reset" value="Reset"/> </form> Hi, I'm not sure if my question is posted in the correct section, I hope so. I wonder if somebody can help me. I have generated an opt-in form from Imnica Mail(Autoresponder). I put the code in a textbox widget in the sidebar using Wordpress. I want to add two things in the generated code - an image just above the First name textbox, and a text saying "Privacy: We respect your privacy." under the button. I don't know what I'm doing wrong, they do not show. I have copied the code below. I would be very grateful if you could help me. Thanks. <DIV class=o-form> <DIV class=o-form-header> <H3 id=o-form-title>Mail List Subscription Form</H3> <P id=o-form-description> Please fill in and submit the form below to subscribe to our mailing list.</P></DIV> <img src = "http://mysite.com/wp-admin/media.php?attachment_id=88&action=edit"> <FORM accept-charset=UTF-8 method=post action= http://www.imnicamail.com/v4/subscribe.php> <DIV class=o-form-row><LABEL for=FormValue_CustomField7891>First Name</LABEL><INPUT id=FormValue_CustomField7891 type=text name= FormValue_Fields[CustomField7891]></DIV> <DIV class=o-form-row><LABEL for=FormValue_EmailAddress>Email Address</LABEL><INPUT id=FormValue_EmailAddress type=text name= FormValue_Fields[EmailAddress]></DIV> <INPUT id= FormButton_Subscribe value=Subscribe type=submit name= FormButton_Subscribe><INPUT value=7093 type=hidden name= FormValue_ListID><INPUT id=FormValue_Command value=Subscriber.Add type=hidden name=FormValue_Command> <p> Privacy: We respect your privacy.</p> </FORM> <STYLE type=text/css media=screen>.o-form{background- color:#FFF4ED;border:1px solid #814913;} .o-form form{margin:0px;padding:0px;} .o-form .o-form-header{background-color:#814913;padding:9px;} .o-form h3{color:#fff;font-family:Arial,sans-serif;font- size:18px;line-height:18px;margin:0px;padding:0px;} .o-form p{color:#fff;font-family:Arial,sans-serif;font- size:12px;line-height:18px;margin:0px;padding:0px;} .o-form .o-form-row{margin-top:9px;padding:0 9px;} .o-form .o-form-row label{color:#814913;font-family:Arial,sans- serif;font-size:12px;display:block;font-weight:bold;} .o-form input[type="text"]{border:1px solid #814913;color:#814913;padding:5px 7px;} .o-form input[type="submit"]{margin:20px 9px 18px 9px;}</STYLE> </DIV> I hate to beat a dead horse here.. but I just redid a contact form adding a captcha, and now nothing aligns right, and I can't seem to fix it. Can somebody fix if they have a moment? Thanks a million! The URL is www.bkriegtech.net/?page=contact I am building my first site for my buisness. I am building the site from a template. There is a contact form I want to use and I am having problems with getting it to work. When I test and submit the form I get the email, but there is no information from the input fields. The thank you redirect is working ok. The email comes in blank with no text from the input fields. This is my first time setting up a email form. I have spent hours searching and I have finally raising the white flag and going to ask the pro's here. You can find the contact page here. http://www.elitemechanicalplumbing.com/contact_us.html Thank you <form action="http://www.startlogic.com/scripts/formemail.bml" id="form"><input type="hidden" name="thankyou_url" value="http://www.jjplumbinghvac.com/thank_you_contact.html"/> <div class="container1"> <div class="h"><input type="text" value="Enter your name" onblur="if(this.value=='') this.value='Enter your name'" onfocus="if(this.value =='Enter your name' ) this.value=''" /></div> <div class="h"><input type="text" value="Enter your e-mail" onblur="if(this.value=='') this.value='Enter your e-mail'" onfocus="if(this.value =='Enter your e-mail' ) this.value=''" /></div> <div class="h"><input type="text" value="Enter your phone" onblur="if(this.value=='') this.value='Enter your phone'" onfocus="if(this.value =='Enter your phone' ) this.value=''" /></div> <div class="h"><input type="text" value="Enter subject" onblur="if(this.value=='') this.value='Enter subject'" onfocus="if(this.value =='Enter subject' ) this.value=''" /></div> <textarea rows="40" cols="30" onblur="if(this.value=='') this.value='Enter message'" onfocus="if(this.value =='Enter message' ) this.value=''" >Enter message</textarea> <div class="container"> <div class="fright"> <a href="#" class="link-1" onclick="document.getElementById('form').reset()">Reset</a> <div class="indent-2"><a href="#" class="link-1" onclick="document.getElementById('form').submit()">Submit</a></div> </div> </div> </div> <input type="hidden" name="my_email" value="test@jjplumbinghvac.com"/> </form> Hi all I am having problem with form tab, please see http://www.cmela.com/ it looks good in FF but in IE after header it showing space, at the moment form tag is outside of the table tag, if i put form tag like this. <table> <form> <tr> <td> </td> </tr> </form> </table> this works fine but it shows errors in w3c validation any idea Hey guys. This is my first post, so thanks in advance for any help I receive! I'm having some problems with a form I've created. The form itself, when submitted, doesn't actually have to be sent to a server, as it is just for a school project. However, to my understanding when you submit a form, the information that is collected from the form is appended in a string to the url at the top. My problem is that part of my form is not being sent. My code is below, the part of the form that is not being sent is the table that has the text boxes for date, item and quantity. Thanks again in advance for any help! Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--Name: Adam Rehill Student Number: 3010729 Course: ACS 2909 Assignment 2 Part 2 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Assignment 1: Part 2: Transitional DTD </title> <link href="assignment2.css" rel="stylesheet" type="text/css"/> </head> <body> <form action="" method="get" name="form1" id="form1"> <fieldset id="username"> <table> <tr> <td> <label for="fname">First Name:</label> </td> <td> <input type="text" name="fname" id="fname" value="Adam" tabindex="1"/> </td> </tr> <tr> <td> <label for="lname">Last Name:</label> </td> <td> <input type="text" name="lname" id="lname" value="Rehill" tabindex="2"/> </td> </tr> </table> </fieldset> <div style="float: right; width: 60em"> Purchased Items. </div> <br/> <table> <tr> <td colspan="2"> <table title="Purchased Items." id="purchaseditems" rules="all"> <tr> <th>Date</th> <th>Item</th> <th>Quantity</th> </tr> <tr> <td><input type="text" id="date1" style="width:10em" value="" tabindex="3"/></td> <td><input type="text" id ="item1" style="width:40em" value="" tabindex="6"/></td> <td><input type="text" id ="qt1" style="width:6em" value="" tabindex="9"/></td> </tr> <tr> <td><input type="text" id="date2" style="width:10em" value="" tabindex="4"/></td> <td><input type="text" id="item2" style="width:40em" value="" tabindex="7"/></td> <td><input type="text" id="qt2" style="width:6em" value="" tabindex="10"/></td> </tr> <tr> <td><input type="text" id="date3" style="width:10em" value="" tabindex="5"/></td> <td><input type="text" id="item3" style="width:40em" value="" tabindex="8"/></td> <td><input type="text" id="qt3" style="width:6em" value="" tabindex="11"/></td> </tr> </table> </td> </tr> <tr> <td> <fieldset id="osradios"> <legend>Select the operating system:</legend> <input type="radio" name="ros" id="ros1" value="windows" tabindex="12"/> <label for="ros1">Windows</label> <br/> <input type="radio" name="ros" id="ros2" value="unix" tabindex="13"/> <label for="ros2">Unix</label> <br/> <input type="radio" name="ros" id="ros3" value="macos" tabindex="14"/> <label for="ros3">Mac OS</label> <br/> <input type="radio" name="ros" id="ros4" value="atari" checked="checked" tabindex="15"/> <label for="ros4">Atari</label> <br/> <input type="radio" name="ros" id="ros5" value="beos" tabindex="16"/> <label for="ros5">BeOS</label> </fieldset> </td> <td> <fieldset id="oscheckboxes"> <legend>Select the operating system:</legend> <input type="checkbox" name="cos" id="cos1" value="windows" tabindex="17"/> <label for="cos1">Windows</label> <br/> <input type="checkbox" name="cos" id="cos2" value="unix" tabindex="18"/> <label for="cos2">Unix</label> <br/> <input type="checkbox" name="cos" id="cos3" value="macos" tabindex="19"/> <label for="cos3">Mac OS</label> <br/> <input type="checkbox" name="cos" id="cos4" value="atari" checked="checked" tabindex="20"/> <label for="cos4">Atari</label> <br/> <input type="checkbox" name="cos" id="cos5" value="beos" checked="checked" tabindex="21"/> <label for="cos5">BeOS</label> </fieldset> </td> </tr> </table> <br/> <input type="submit" value="Submit" tabindex="22"/> <input type="reset" value="Reset" tabindex="23"/> </form> <br/> <iframe src="../Part 1/Strict.xhtml" width="400px" height="260px"> <p>Sorry, your browser does not support frames. Click <a href="../Part 1/Strict.xhtml" target="_blank"> here </a> to view this content on a seperate page. </p> </iframe> </body> </html> I'm using Godaddy's gdform.php form mailer for my forms. The forms work perfectly except the validation. I need the visitors to fill in the fields and then submit the information to my email, but the problem is that everyone can submitt even if he doesn't fill in the form. I want all of the fileds to be required. Is there something wrong with the code ? Here it is : <form action="/gdform.php" method="post"> <table align="center"> <input type="hidden" name="subject" value="Form Submission"> <input type="hidden" name="redirect" value="/Add/thankmes.html"> <input type="hidden" name="required" value="YourName, Email, description"> <tr> <td><p><font color=WHITE font size=4>Your Name:</p> </font></td> <td align=center height=50><p><input type="text" name="YourName" size="52"/></p></td> </tr> <tr> <td><p><font color=WHITE font size=4>Your E-mail:</p> </font></td> <td height=50><p><input type="text" name="Email" size="52"/></p></td> </tr> <tr> <td><p><font color=WHITE font size=4>Your Message:</p> </font></td> <td><br><p><textarea name="description" cols="40" rows="5"> </textarea></p></td> </tr> <tr> <td><input type="submit" name="submit" value="Send"/></td> </tr> </table> </form> hi, problem with my code. it does not post to the save.php, the only thing that gets posted to the php file is a ":" can someone help Code: <form method="POST" action="save.php"> <div align="center"> Username: <input type="text" name="username" size="15" /><br /> <div align="center"> Gender: <input type="gender" name="gender" size="15" /><br /> <div align="center"> E-mail: <input type="email" name="email" size="15" /><br /> <div align="center"> <p><input type="submit" value="Sign Up" /></p> </div> </form> |