Page 1 of 1

GET email and ID

Posted: Sun Mar 14, 2010 12:58 pm
by infinitus8
Hello, it's my first post and I'm not sure if is the right place.
I want to integrate some contact form into my website, but every page I have diferent email address and ID, 2 or 3 page it's ok, I can do manually, but it will be hundreds of page and hundred email address in database.
So, I try this to fill out the $email fild:

My Code:
<?php
$sql_email = "SELECT EMAIL FROM USERS WHERE ID = '$_GET[get_id]'";

$email = array();

$query = mysql_query($sql_email) or die(mysql_error());

while($r = mysql_fetch_array($query )){
$email[] = $r['EMAIL'];
}
?>

Contact Form:
<?php
$email ='yourname@your-website.com';// <<=== update to your email address

session_start();
.
.
.

I'm not programmer and I tried everythink, but not is working, :banghead: any Idea?
Thank you in advanced.