Re: Re: Invalid or Valid because the same.

From: Date: Sat, 17 Mar 2001 06:50:06 +0000
Subject: Re: Re: Invalid or Valid because the same.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44368@lists.php.net to get a copy of this message
//HTML headers here <? if ($Submit == "Submit") { // If form has been submitted $errormsg = array(); if (!$email) { $errormsg[] = "Please fill in your email address"; } $count = count($errormsg); #echo $count."<br>"; if ($count > 0) { for ($i=0; $i<count($errormsg); $i++) { echo $errormsg[$i]."<br>"; } } elseif ($count == 0) { #Insert Database checking ( NO ERROR ) $host="localhost"; $dbuser="root"; $dbpassword="root"; mysql_connect($host, $dbuser, $dbpassword) or die ("Unable to Connect to Database"); mysql_select_db("secretDB"); $query = "Select username,password from users where email = '$email'"; $sqlquery = mysql_query($query); $num = mysql_numrows($sqlquery); if ($num == 0) #Not valid { ?> <center>So sorry, your email is not valid.</body></html> <? } else if ($num == 1) #Valid { ?> <center>Sent mail.</body></html> <? } } } if ($reset == "Reset"){ $username = ""; $real_name = ""; $password = ""; $email = ""; } ?> // Form here ----- Original Message ----- From: "Jason Lotito" <Jason@lehighweb.com> To: <techzeus@pacific.net.sg> Sent: Saturday, March 17, 2001 5:59 PM Subject: RE: [PHP] Re: Invalid or Valid because the same. > I have attached a php file together with this email. > > I apologize if you are having to download an extra 2k with this message. > > Please help me out. Thank you. > > -----Original Message----- > From: techzeus@pacific.net.sg [mailto:techzeus@pacific.net.sg] > Sent: Friday, March 16, 2001 10:36 PM > To: techzeus@pacific.net.sg; 'PHP General List. (E-mail)' > Subject: [PHP] Re: Invalid or Valid because the same. > > > Sorry, heres the attached file. > > > Nope, still no file. You might want to just paste the important stuff into > the email to the group. > > Jason Lotito > jason@lehighweb.com > www.newbienetwork.net >

« previous php.general (#44368) next »