even if you can build a "mailto" form that doesn't need a server side CGI/PHP script, the latter is obviously the best solution (ie you need, this is the case, to hidden the destination address)
the destination script, that will be executed by pressing submit button is set in action attribute of FORM field
Code:
<form method="post" action="mickeymouse.php">
<label for="name">enter your name</label>
<input type="text" name="name" />
<input type="submit" name="submit" />
</form>
from within your php script you will be able to access to FORM data using $_POST array. Ie a mickeymouse.php file that simply print out to screen the name would be
mickeymouse.php
Code:
<?php
print "your name is " . $_POST["name"];
?>
hope this help!
__________________
Gabrio "TheClue"
Please login or register to view this content. Registration is FREE
|