Jump to content

Php Email Question


Guest aee156
 Share

Recommended Posts

Guest aee156

Hello,I have a sript like this below, and I want to have this information emailed to me as well, what code would I use for this?<?php$con = mysql_connect("localhost","red2sell_admin","321321");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("red2sell_sellers", $con);$sql="INSERT INTO sellers (ad_code, hsale, city, state, zip, mailing, city1, state1, zip1, email, alt_email, hphone, wphone, cphone, best_number, best_time, sell, reason_sell, type_of_bank, type_of_forclosure, ca, cy, found_home, br, signed, estimate, asking_price, value, avalue, type_home, condition, location, nb, nbath, nhbath, garage, rv, flr, sdr, attic, fenced, sp, ht, basement, notes)VALUES('$_POST[ad_code]','$_POST[hsale]','$_POST[city]','$_POST[state]','$_POST[zip]','$_POST[mailing]','$_POST[city1]','$_POST[state1]','$_POST[zip1]','$_POST','$_POST[alt_email]','$_POST[hphone]','$_POST[wphone]','$_POST[cphone]','$_POST[best_number]','$_POST[best_time]','$_POST[sell]','$_POST[reason_sell]','$_POST[type_of_bank]','$_POST[type_of_forclosure]','$_POST[ca]','$_POST[cy]','$_POST[found_home]','$_POST[br]','$_POST[signed]','$_POST[estimate]','$_POST[asking_price]','$_POST[value]','$_POST[avalue]','$_POST[type_home]','$_POST[condition]','$_POST[location]','$_POST[nb]','$_POST[nbath]','$_POST[nhbath]','$_POST[garage]','$_POST[rv]','$_POST[flr]','$_POST[sdr]','$_POST[attic]','$_POST[fenced]','$_POST[sp]','$_POST[ht]','$_POST[basement]','$_POST[notes]')";if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); }echo "Thank You! Please check your email for further information";mysql_close($con)?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...