Posted by nice.guy.nige on 12/14/06 00:20
While the city slept, David Dorward (dorward@yahoo.com) feverishly typed...
> one.1more@gmail.com wrote:
>
> (Snip a form with a PHP action and an input named firstpart_email)
>
>> If a user inputs "joe124", what code do i add in order for the form
>> to submit "joe124@[domain]"
>
> <?php
>
> $email = $_GET['firstpart_email'] . '@[domain];
Or even...
$email = "";
if(isset($_GET["firstpart_email"])) {
$email = $_GET["firstpart_email"]."@[domain]";
}
else {
print("<p>You didn't enter the first part of your email... go back and
fix it you muppet!</p>\n");
}
Cheers,
Nige
--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"
[Back to original message]
|