Hi everybody.
I have a form set up like this...which is being pitched to this PHP...PHP Code:<form id="form1" name="form1" method="post" action="bid.php">
<label for="biddersName">Name: </label>
<input type="text" name="name" id="name" tabindex="10"/>
<label for="biddersEmail">Email: </label>
<input type="text" name="email" id="email" tabindex="11"/>
<label for="biddersAmmount">Bid: </label>
<input type="text" name="ammount" id="ammount" tabindex="12" size="7"/>
<p>
<input type="submit" name="Submit" id="submit" value="Place Bid" tabindex="13" />
</form>
Obviously the variable $item comes in blank because I don't know how to send the form id to the pHP so it can email it to me. Even if I could somehow pass a hard-wired variable from the form into the PHP and email that, it would be fine.PHP Code:<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$bid = $_REQUEST['ammount'] ;
$item = $_REQUEST['form1.id'] ; //I need to figure out how to pass the form id to php.
$message = $name . "," . $email . "," . $bid . "," . $item ;
mail( "[email protected]", "AUCTION: " . $item,
$message, "From: $email" );
header( "Location: http://www. myDomain.com/thankyou.html" );
?>
Basically, I'm using the same bid.php to allow people to bid on multiple items separately and I need a way to know which item they're bidding on.
Any help would be appreciated!!!
Thanks,
Layne

