Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 1, 2026.

Submit email address and name to database

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

abcde

Established Member
Impact
16
I'm looking for a code that allows me to submit email addresses and names to the database

i kinda wonder if this code can do it??

PHP:
<?php
	include("database.php");
	$e = $_POST['email'];
	$n = $_POST['name'];

	
	if ($e == "" || $n == ""){
		header("location: ../submit.php");
		exit();
	}
	
	$q = mysql_query("SELECT id FROM email WHERE email = '$e' LIMIT 1")or die(mysql_error());
	if ($n = mysql_num_rows($q)){
		echo "already exists";
		exit();
		header("location: ../submit.php");
		
	}
	echo $n;
	exit();

	mysql_query("INSERT INTO email VALUES(null, '$e', '$n', 0)")or die(mysql_error());
	
	header("location: ../Index.php?success=added");
	
?>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back