Project Detail

Need small addition to PHP script to check for duplicate emails. Will pay $25 right away!  

Need small addition to PHP script to check for duplicate emails. Will pay $25 right away! is project number 405810
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: e3d

Budget: $30-250

Created: 03/21/2009 at 11:30 EDT

Bid Count: 5

Average Bid:
$ 30

03/23/2009 at 11:30 EDT

Project Creator: seadd2007
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (2 reviews)

Bid On This Project
 

Description

I need this script to check for duplicate emails. This is a very simple script that is part of a larger script that allows someone to sign up for a newsletter. Just need to check to see if the email address they are inputing is already in database. If it is, print message like "Sorry, email is already in our list".

Will pay $25 right away to someone that can do this immediately.

Here is the code:

if ($type=="SIGNUP")
{
global $page,$email_address,$email_name;

if (isset($email_address))
{
$pos=strpos (strtoupper($email_address), '@');
$pos2=strpos (strtoupper($email_address), '.');
if ($pos===false || $pos2===false)
{
$ret="The email address is not valid!<BR>";
$ret="<form>$content1<input type=hidden name=page value=$page>Your Email : <input type=text name=email_address></><br>";
$ret.="Your name : <input type=text name=email_name value='$email_name'><br><input type=submit value='Sign Up'><br>$content2</form>";
}
else
{
$ret="Thank you for signing up!";
$sql="INSERT INTO sb_email (email,email_name) VALUES('$email_address','$email_name')";
$result=$db->query($sql);
// ADD email in database

}
}else
{
$ret="<form>$content1<input type=hidden name=page value=$page>Your Email : <input type=text name=email_address></><br>";
$ret.="Your name : <input type=text name=email_name value='$email_name'><br><input type=submit value='Sign Up'><br>$content2</form>";
}

}

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

e3d

 

30

0 days

03-21-2009 11:36 EDT

Hello, can do it right now. Thanks

help

 

30

1 day

03-21-2009 11:33 EDT

////////// hello sir, PLEASE CHECK MY PM //////////////

help

 

30

0 days

03-21-2009 11:32 EDT

Hi, Please check PM

help

 

30

0 days

03-21-2009 11:33 EDT

let me take this task instantly

help

 

30

0 days

03-21-2009 11:35 EDT

(No Feedback Yet)

i am ready to do this..

help


    Bid on this Project