Jump to content

Email direct to command for "action=" line in form template


freakazoid

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...