Simple (for you!) email query
Posted: Thu Mar 09, 2006 8:18 am
feyd | Please use
In booking.php the code i have is here....
Question is, mail is being sent all works fine but the $message part isn't working.....Any ideas why?
Thanks in advance
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hi there, bit of a php newbie....
I'm trying to sort out just a simple form to be emailed.....
an excerpt from the form is here:Code: Select all
<form action="booking.php" method="post">
<table width="700" border="0">
<tr>
<td width="93">Name </td>
<td width="237"><input type="text" name="username" size="35"/></td>
<td width="23"> </td>
<td>Email </td>
<td><input type="text" name="usermail" size="35"/></td>
<td> </td>
<td>Address</td>
<td><input type="text" name="useraddr" size="35"/></td>
<td> </td>Code: Select all
<?
$to="X@XXXX.XXX";
$subject=" Booking Form";
$message=$username,$usermail,$useraddr;
mail($to,$subject,$message);
?>Thanks in advance
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]