
April 11th, 2006, 10:44 AM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
php function
I would like some help on a problem that occurs, i have a login in script and when i go throught the process of filing in the details then press submit when it goes to the next page the template moves to the right and i cant get it central again , i have noticed that part of the script has exit; function after it
php Code:
Original
- php Code |
|
|
|
// Validate Email Address String - FOR VALID EMAIL DOMAINS $found=false; if ($EmailArray!="") { for ($ct= 0; $ct<= sizeof($EmailArray)- 1; $ct++ ) { if (eregi($EmailArray[$ct], $email)) { $found=true; } else { $found=false; } } } else { $found = true; } if (!$found) { print "<p><font size="3 " face="Verdana, Arial " color="#FF0000"><b>Email address does not belong to the list of allowable email domains!</b></font></p>"; } // Make sure username does not yet exist in the db if ($UsernameExist>0) { print "<p><font size="3 " face="Verdana, Arial " color="#FF0000"><b>Username already exists in the database!</b></font></p>"; } // Make sure email address does not yet exist in the db if ($EmailExist>0) { print "<p><font size="3 " face="Verdana, Arial " color="#FF0000"><b>Email address already exists in the database!</b></font></p>"; }
if i take those out it does go central but prints all the code " email exists etc"
is there a way to have this so that the page is central on the screen
Thanks for any help
|