Have an idea to be able to allow clients to submit email address and then my db will place email address within php code .
Code:
<?php include_once "scripts/connect_to_mysql.php"; $id = mysql_real_escape_string($id); $id = eregi_replace("`", "", $id); $sql = mysql_query("SELECT * FROM contactInfo WHERE id='$id'"); while($row = mysql_fetch_array($sql)){ $contactEmail = $row4["contactEmail"]; $contactEmail = "$contactEmail"; } //////////////////this is where the client email go below/////////// $email_to = 'someone@mail.com'; //the address to which the email will be sent ?> <?php print "$contactEmail"; ?>
Comment