HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
problem with email form
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
cold leg



Joined: 16 Oct 2008
Posts: 5

PostPosted: Sat Oct 18, 2008 11:36 pm     problem with email form Reply with quote

hello

i made an email form, but i don't know how i can put several variables in the message part of the email.

the variables $ticketsadult $ticketschildrenDrop $table are drop down lists and the $comments is an text area for comments and they all should be send with the email

Code:

<?php

$name = $_POST['name'];
$email = $_POST['email'];
$ticketsadult = $_POST['karterw'];
$ticketschildren = $_POST['kartsch'];
$table = $_POST['tisch'];
$comments = $_POST['comments'];


mail('dsgdsf.sdfgsdfatgmx.at', 'Reservierung', ???????, 'From: ' . $name . ' <' . $email . '>');

header('Location: danke.html');

?>
jonhel



Joined: 07 Oct 2008
Posts: 10
Location: Adelaide, South Australia

PostPosted: Sun Oct 19, 2008 8:21 pm     Reply with quote

You refer to the variables in the text such as the following example -

Code:
$emailtext = "

Hi ".$name.",

Thank you for emailing us.

Your email is $email.";
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial