freakazoid Posted April 22, 2012 Share Posted April 22, 2012 Good day, firstly, please bear with me as I am a newbie but keen on learning.I am using Bluefish editor in Linux Ubuntu 10.1. I downloaded a template and succesfully created a website but for the life of me can I not get the form on the contact page to submit directly to a specified info@ ... address. I did however get it ot open the inquirer's email client thus for the time being just created an email link.Below find the script as pertained in the template ... if anyone could be so kind as to assist me in the correct command to send the form to an info@ address when the submit button is clicked I would truly appreciate it: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <form id="contact" method="post" action="#"> <div class="row1"> <span class="formlabel">your name</span> <span class="forminput"><input type="text" /></span> </div> <div class="row1"> <span class="formlabel">your email address</span> <span class="forminput"><input type="text" /></span> </div> <div class="row1"> <span class="formlabel">your enquiry</span> <span class="forminput"><textarea cols="28" rows="11" class="textarea"></textarea></span> </div> <div class="spacer"> </div> <div class="row1"> <span class="formlabel"></span> <span class="forminput"><input type="submit" value="submit" class="submit" /></span> </div> </form> Thank you in anticipation and I do appreciate the W3Schools website, I am learning all I know from there! Link to comment Share on other sites More sharing options...
eTianbun Posted April 22, 2012 Share Posted April 22, 2012 You can't send it directly, you need a php script to do that for you!EXAMPLE:<form method="post" action="contact.php"> Link to comment Share on other sites More sharing options...
freakazoid Posted April 22, 2012 Author Share Posted April 22, 2012 Thank you for the reply; I thought as much but this is exactly where I get stuck ... could you please point me in the right direction? I found this in the meantime: http://www.w3schools.com/php/func_mail_mail.asp and this suggestion as a simple email:<?php$txt = "First line of text\nSecond line of text";// Use wordwrap() if lines are longer than 70 characters$txt = wordwrap($txt,70);// Send emailmail("somebody@example.com","My subject",$txt);?> Do I edit and enter this script where the hash is? Link to comment Share on other sites More sharing options...
eTianbun Posted April 22, 2012 Share Posted April 22, 2012 You need to learn php, if you realy want to do this, or just get an existing one, by googling "php contact form"! Here is a little info, on how to send emails using PHP:http://www.w3schools.com/...email.asp Link to comment Share on other sites More sharing options...
freakazoid Posted April 22, 2012 Author Share Posted April 22, 2012 Thanks for the help gentlemen, will get a google one at this point in time until I have completed more courses with W3Schools!Will post the url when finished just to show off a bit Link to comment Share on other sites More sharing options...
eTianbun Posted April 22, 2012 Share Posted April 22, 2012 Good idea! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.