Yeah I know this is a pretty basic problem, but it's been a while since I've worked with PHP and I'm having a real problem getting it functioning properly. My real issue is the user inputed information is not getting sent with the email. I haven't added all the fields to the email yet as I'm trying to get it right first then populating all of the fields. Anyway my code is below:
hairinfo.html
Code: <form name="hairinfo" method="POST" action="hair/EmailToForm.php">
<table border="0" align="center" background="images/blackopaque.png" class="contact">
<tr>
<td width="100">Name</td>
<td><input name="name" type="text" id="name" class="contactBox" size="30"></td>
</tr>
<tr>
<td width="100">Service</td>
<td class="contactBox">
<input type="radio" name="hairservice" value="Cut" id="hairservice"> Cut
<input type="radio" name="hairservice" value="Colour" id="hairservice"> Colour
<input type="radio" name="hairservice" value="Hair Up" id="hairservice"> Hair Up
<input type="radio" name="hairservice" value="Set" id="hairservice"> Set
<input type="radio" name="hairservice" value="Style" id="hairservice"> Style
</td>
</tr>
<td width="100">Address</td>
<td><input name="address" type="text" class="contactBox" id="address" size="30"></td>
</tr>
<tr>
<td width="100">City</td>
<td><input name="city" type="text" class="contactBox" size="30"></td>
</tr>
<tr>
<td width="100">Date</td>
<td><input name="date" type="text" class="contactBox160" id="date"/>
<script language="JavaScript">
new tcal ({
// form name
'formname': 'testinput',
// input name
'controlname': 'testinput'
});</script>
</td>
</tr>
<tr>
<td width="100">E-Mail</td>
<td><input name="email" type="text" id="emailaddress" class="contactBox" size="30" ></td>
</tr>
<tr>
<td width="100">Phone Number</td>
<td><input name="phone" type="text" class="contactBox" size="30" id="phone"></td>
</tr>
<tr>
<td width="100"> </td>
<td> </td>
</tr>
<tr>
<td width="100" valign="top">Brief</td>
<td><textarea name="message" cols="23" rows="9" class="contactBox" id="message"></textarea></td>
</tr>
<tr>
<td width="100"></td>
<td><input name="send" type="submit" class="inputField" value="Send" /></td>
</tr>
<tr>
<td colspan="2"><em>For a faster reply, text your booking information to: 021 0259 6543</em></td>
</tr>
</table>
</form>
hair/EmailToForm.php
Code: <?php
// Contact subject
$subject ='Hair Booking';
// Details
$message="$message";
// Mail of sender
$mail_from="$emailaddress";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='kerry@manukadesign.co.nz';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "Thanks, we've recived your contact information<br />
and we will be in touch as soon as possible about your request";
}
else {
echo "ERROR";
}
?>
I would really appreciate any help offered.
Thanks
php/mysql auto logout after 2 hour and reset password
Hi all, This I hope will make sense. I've the following code which when a user logins in, creates a session: if (isset($_POST['submitted'])) { // Check if the form has been submitted. require_once
Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related coding to the handlers option is found on the handlers.php page which includes a list of handlers with a
PHP form authentication
Hi guys,what am trying to achieve is this: Whenever a user tries to login to my website, an error should be displayed for the first time notifying them to try again. Every time they open the website,
present value of sequence?
Hi
C++ API to Oracle dB
I need to perform a select command to the Oracle dB to obtain information from a table.What libraries can I link into my project to make this work?I read about the OCI - but I cannot find any
Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is there any way to do it without using a database, and also eager to know a method to make to throw an
noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.inc.php). I have never used cURL and cant find any good tutorials online so you guys are my last
How to implement HTTP connection timeout
Hi All,I would like to implement an HTTP connection timeout.I am working on a application which uses HTTP connection, but the problem here is that the response from server is late... I want to create
SESSION question
I am building an application , a directory for auctions.For SEO i made a script which copies a php file to all the directories paths that it creates.I made it work and into all the php files into each
How to Detect it is public_html or httpdocs?
How to check whether it is cPanel or Plesk?If it found public_html perform <?php include("callcPanel.php"); ?>Else if found httpdocs perform <?php