Adding an "@domain.com" symbol automatically.
Posted 25 October 2006 - 11:02 PM
1. Verify that the guest who is signing up ONLY typed in letters, numbers, etc (ONLY things that would be in the first part of an email, before the "@")
2. Automatically insert into the form/database/whatever the @berkeley.edu for every email.
Any help is greatly appreciated. THANKS!
Posted 26 October 2006 - 12:06 AM
<? $first_part = $_POST['first_part']; $domain = "@berkeley.edu"; $email = $first_part . $domain; ?> <? echo "$email"; ?>the email variable would then be the first part of what they entered and the domain would be at the end coming out into the full email like that..
Posted 26 October 2006 - 12:49 AM
If anyone could download that file (which is a zip with one file, join.php) and tell me where (line number, etc) to put in the code, I will repay you someway, somehow. THANKS!
Also, it is a zip file just to make sure it doesn't load in the browser and so that you can download it to youre computer to open it with your php editor of choice.
Posted 26 October 2006 - 02:02 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users