HTML - Mail System, How Can I Get It To Work?
I have a maling system but it isnt work well, what do i need to config?
<form id="form" action="" enctype="multipart/form-data"> <div class="row"> Skriv dit navn<br /> <input type="text" class="input" /> </div> <div class="row"> Skriv din mail<br /> <input type="text" class="input" /> </div> <div class="row"> Skriv din by<br /> <input type="text" class="input" /> </div> <div class="row1"> Skriv din meddelelse<br /> <textarea cols="1" rows="1"></textarea><br /> <div class="div"> <input type="image" src="images/clear.gif" /> <input type="image" src="images/send.gif" /><br /> </div> </div> </form> http://html.sinann.dk/index-5.html Thanks Similar TutorialsHello everyone! My form seems to work... but I'm not getting the submission in my e-mail! You can check it out he www.BoatingHitList.com/formtest.html Here's the code for my form: HTML Code: <form name="htmlform" method="post" action="html_form_send.php"> <table width="500px"> </tr> <tr> <td valign="top"> <label for="name">Name*</label> </td> <td valign="top"> <input type="text" name="name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="email">Email Address*</label> </td> <td valign="top"> <input type="text" name="email" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Location (city, state, country)*</label> </td> <td valign="top"> <input type="text" name="location" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Address*</label> </td> <td valign="top"> <input type="text" name="website" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Title*</label> </td> <td valign="top"> <input type="text" name="websitetitle" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Listing Category*</label> </td> <td valign="top"> <select name="category"> <option>Select Category <option>BOAT SHOWS/EVENTS <option>BOATING ASSOCIATIONS <option>BOOKS/MAGAZINES <option>BROKERS - NEW BOATS <option>BROKERS - USED BOATS <option>CHARTERS <option>CLASSIFIEDS <option>FINANCE/INSURANCE <option>FORUMS <option>MARINAS <option>PARTS/ACCESSORIES <option>REPAIR/MAINTENANCE <option>SERVICES </select> </td> </tr> <tr> <td valign="top"> <label for="comments">Website Description (25 words or less)*</label> </td> <td valign="top"> <textarea name="comments" maxlength="300" cols="25" rows="6"></textarea> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form> And here's the code for my php page - www.BoatingHitList.com/html_form_send.php HTML Code: <?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "submit@boatinghitlist.com"; $email_subject = "Boating Hit List Submission"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors before submitting.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email_from = $_POST['email']; // required $location = $_POST['location']; // required $website = $_POST['website']; // required $websitetitle = $_POST['websitetitle']; // required $category = $_POST['category']; // required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; if(!eregi($email_exp,$email_from)) { $error_message .= 'Please enter a valid e-mail address.<br />'; } $string_exp = "^[a-z .'-]+$"; if(!eregi($string_exp,$name)) { $error_message .= 'Please enter a valid name.<br />'; } if(strlen($comments) < 2) { $error_message .= 'Please enter a valid website description.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Location: ".clean_string($location)."\n"; $email_message .= "Website Address: ".clean_string($website)."\n"; $email_message .= "Website Title: ".clean_string($websitetitle)."\n"; $email_message .= "Listing Category: ".clean_string($category)."\n"; $email_message .= "Website Description: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- place your own success html below --> <p><center><img src="http://www.boatinghitlist.com/BHLlogo.gif"> <p><font face="calibri" size="4"> Thank you for submitting your website to BoatingHitList.com.</font> <p><font face="calibri" size="4"> Please make sure you include a link back to us on your website. All websites are individually reviewed to ensure they are placed in the correct category and that your website links back to us. Upon your website's approval, you will receive an e-mail notification. If your website is denied, you will receive an e-mail with the reason(s) your website was denied. <p>Choose one of the codes below to display our link back on your website: <p> <textarea rows="6" cols="30"> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> </textarea> <p> Will display as: <p> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> <p> <textarea rows="6" cols="30"> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! </textarea> <p> Will display as: <p> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! <p> <a href="http://www.boatinghitlist.com">CLICK HERE TO GO BACK TO www.BoatingHitList.com</a> <?php } ?> Hello all, I am currently building an HTML newsletter complete with graphics and it is all set up and appears fine in my IE and other web browsers. However, now I want to actually place this HTML and graphics in the actual e-mail form and test it. This may sound like like a stupid question, but does anyone know how to do this? For the life of me I can't think of any way to actually embed an .html file (or just the HTML coding) inside of an email and have it appear inside of say.. a Yahoo, MSN, google, or outllook express email form. I need to be able to do this to test an send my e-newsletter. I've searched the net for tutorials on how to do this but have come up empty handed. Any ideas on how to go about this? Thanks in advance! can someone tell me how to create a ticket system for a gameserver/webhosting site.i have been serching google all day and cant really find anything about it. hopefully someone can help me and even with a site that i can read about it. thanks, James Bond So I had a question about the Hexidecimal system. Pertaining to web safe colors: If you define a color not websafe, their screen still shows it, right? And if it's not in their screens gamma, what does it resort to? The nearest color? i need a quick way to add a commenting system to my site (you know, a way for guests to add a comment to the bottom of the page) How do I implement a voting system in which I put all the highest voted at the top of the list? Thanks in advance!! 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 Hi, I'm not sure if I've put this in the right section, but I'm looking for a method that will send an email confirmation to people who submit to my mailing list to check to see if it is actually their email address. Like when you sign up to forums and you have to click the link in the email to confirm. Has anyone got any ideas? thanks Hi, Dose eny one know how to make an advanced password system? My website is http://jeradio.tripod.com I only have a basic system at the moment. Thanks hello, I currently own a website for my local club. it shows a lot of information about the club to the world. but i want it to work in a way that, the members of the club can login into a private area of the website, from where they can access information about the clubs offers and exclusive deals for members. the administrator of the website can add users and then give the username and password to the members, which they use to login. is there a way of doing it ? Is it possible to have a simple list with a button beside each item that can be used to keep a running count of each time that button is pressed, thereby moving the item up higher in the list? For example, here's my list: FAVOURITE COLORS Red <button> 0 Blue <button> 0 Green <button> 0 Yellow <button> 0 Those buttons all get pressed by visitors to a webpage, and the page then refreshes to show something like this: FAVOURITE COLORS Green <button> 24 Yellow <button> 9 Red <button> 4 Blue <button> 3 Any help would be much appreciated HTML + ? + source code. I'm relatively novice in web page development. In my recent work it is required to let user browse thro' web server files system, similarly as one can do it with <input type=file> tag. What I learnt is, there in no equivalent input tag to do so. Is there any other way to do accomplish this task Ok I would like to create an affiliate system for members of my site. How exactly do you go about doing this? I'd like this to be in the form of banners of my logo, so how do I write the code for the banner to become an active, trackable link for each person? I have google analytics I dont know if that helps. http://www.danielbourne.net/pdwcs/1/about.html this seems to work fine in firefox but in internet explorer creates pading and i cant see how could someone lease look and see what im doing wrong ? Hi! I know how to create an rss feed file. But how to link it in a web page. what I am trying to do is to create a file of my todos, keep it in my Firefox profile folder and make Firefox's 'Live Bookmarks' see it. Thanks Hi, Is there any script or way to view/hide a div or similar tag only if you're on windows/mac/linux? I want a div to show if you're on windows/linux and an other if you're on a mac. Thanks in advance! Is there anyway to add a login system to a website hosted by another company. I have a free website hosting that I upload to using ftp. Is this possible? I don't know much about mysql but it seems like the database needs to be within my house for this to happen. How can i get a code to automatically send an e-mail to an e-mail adress, where the content of the mail is from an inputbox, and where the mail also include the sender (from an inputbox)? I hope you understood that Hi, i have form. www.atstovybe.lt/contact.php you can see. And then i atach file it dosn`t send. i get mail with info in the textarea but file not get. can you help me ? sorry for my english language Hi All Developed a form that provides 2 mail address with the forms details what i would also like is for the e-mail address entered into the e-mail addess box to also recieve a copy how can i do that? Here is that code <FORM ACTION="/includes/scripts/mail/domailsave.pl" ONSUBMIT="return validate()" METHOD="POST" NAME="olform1"> <INPUT TYPE="hidden" NAME="nextpage" VALUE="http://virginmediahome/access/cabinet_clean_up/thanks.html"> <INPUT TYPE="hidden" NAME="emailto" VALUE="xxxxxxxxxxxx@xxxxxxxxxxxxx.co.uk"> <INPUT TYPE="hidden" NAME="emailto" VALUE="xxxxxxxxxxxxxxx@xxxxxxxxxx.co.uk"> <INPUT TYPE="hidden" NAME="subject" VALUE="Notification of Outage files & Audits"> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your Name</SPAN></B></TD> </TR> <TR> <center> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Submitted_By" VALUE="" MAXLENGTH="50"></TD> </TR> </center> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your E-mail Address</SPAN></B></TD> </TR> <TR> <TD WIDTH="400"align = "center"><INPUT TYPE="text" SIZE="40" NAME="E-mail Address" VALUE="" MAXLENGTH="50"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your Contact Number</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Contact Details" VALUE="" MAXLENGTH="50"></TD> </TR></table><p><strong> <font size="3" color="red">Step 3: </strong>The Cabinet</font> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">ICOMS Site ID</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="ICOMS Site ID" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Housefile ID</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="HouseFile ID" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Cab Number</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Cab Number" VALUE="" MAXLENGTH="100"></TD> </TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Cab Address</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Cab Address" VALUE="" MAXLENGTH="100"></TD> </TR> </table><p><strong> <font size="3" color="red">Step 4: </strong>The Dates</font><BR> <font size="2" color="Black">Please copy these from the calculator above</font> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red" align = "center">CRF Date</B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="CRF Date" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red" align = "center">Audit Date</B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Audit Date" VALUE="" MAXLENGTH="100"></TD> </TR> <BR> <TR> <td align = center><INPUT TYPE="submit" NAME="submit" VALUE="Submit"></TD> </TR> </form> |