order.php page
<form name="form1" method="post" action="index.php#order">
<input name="product1" type="image" id="product1" src="image1.jpg">
<input name="image1" type="submit" id="image1" value="Buy!">
<input name="product2" type="image" id="product2" src="image2.jpg">
<input name="image2" type="submit" id="image2" value="Buy!">
</form>
<form name="form2" method="post" action="thankyou.php">
<?php
if ($POST[image1]) {
echo "<img src=\"image1.jpg\"> ProductName 1";
}
if ($POST[image2]) {
echo "<img src=\"image1.jpg\"> ProductName 2";
}
?>
<br>
Name :
<input name="name" type="text" id="name">
<br>
Email:
<input type="text" name="textfield">
<br>
Tel No.:
<input type="text" name="textfield2">
<br>
Message:
<textarea name="textarea"></textarea>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
thankyou.php page
<h1>THANK YOU! We Will get back to you soon!</h1>
<?php echo $name;?><br>
<?php echo $email;?><br>
<?php echo $msg;?><br>
<?php
$email = $POST['email'];
$name = $POST['name'];
$msg = $_POST['msg'];
$recipient = "address@domain.com";
$subject = "Order @ Shop Online";
$message = "E-mail: $email \n\n";
$message .= "Name: $name \n\n";
$message .= "Products: ???????
$message .= "Message: $msg \n\n";
$headers = "From: $email \n";
$headers .= "Reply-To: $email";
mail($recipient,$subject,$message,$headers);
?>
please help me to complete the script to echo the echoed image in order.php to thankyou.php and send the product name to my email...
Please Help! Hope you understand my problems... Thanks A Lot!