You are here: Re: manipulating html forms « HTML « IT news, forums, messages
Re: manipulating html forms

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!"

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация