Jump to content

ismail74

New Members
  • Posts

    2
  • Joined

  • Last visited

ismail74's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you, OK, exactly as in the videos, i did these two files, but the variables don't seem to have worked or recognized?? THE FIRST FILE IS "form.php": <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTNL 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'>http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>Professional Web Design</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body><form method="post" action="form_response.php"> First Name: <br> <input name="name_first" type="text" size="50" maxlength="200"> Email: <br> <input name="email" type="text" size="50" maxlength="200"> <input type="submit" name="submit_button" value="Submit Request >&gt" class="submit"> </form></body></html> AND THE SECOND FILE IS "form_response.php": <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTNL 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>Professional Web Design</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php $first_name = $_post['name_first']; $email = $_post['email']; $email_message = "First name: {$first_name} with an email of: {$email}"; mail('ik4444@hotmail.com', 'Form Response ', $email_message); print "Thank you {$first_name} for your email {$email}"; ?> </body></html> the message was printed and emailed without the variables. Any help??? Thank you
  2. Hello, I noticed that html form can be sent to email through php or ant other langauge. Or, using Mailto function Is there any way we can send the form straight to my email (propably with attachment) using only html ? Mohammad Thanks
×
×
  • Create New...