|
|
Posted by joboils on 07/27/06 12:11
On 25 Jul 2006 18:06:52 -0700, "Flamer" <die.spam@hotmail.com> wrote:
>
>joboils@spam_less_hotmail.com wrote:
>
>> I'm trying to get a site to send e-mail containing the values passed
>> from a form.
>>
>> $Query="INSERT INTO $TableName (id, title, firstname, surname, dob,
>> smoker, gender, tel_day, tel_eve, email, insurance, date_added,
>> borrower_type, amount, term, credit_history) VALUES ('', '$title',
>> '$firstname', '$surname', '$dob', '$smoker', '$gender', '$tel_day',
>> '$tel_eve', '$email', '$insurance', curdate(), '$borrower_type',
>> '$amount', '$term', '$credit_history')";
>> $Result=mysql_db_query ($DBName, $Query, $Link);
>>
>> $date=date("jS F Y");
>>
>> $title\nFirstname - $firstname\nSurname - $surname\nDate of birth -
>> $dob\nSmoker - $smoker\nGender - $gender\nDay telephone number -
>> $tel_day\nEvening telephone number - $tel_eve\ne-mail -
>> $email\nContact re - $insurance\nBorrower type -
>> $borrower_type\nAmount - $amount\nTerm - $term\nCredit history -
>> $credit_history");
>>
>> The e-mail messsages arrive but are missing the variables. (These get
>> filed Ok in the datbase, tho')
>>
>> If a site is on a shared server and phpinfo says register_globals Off,
>> how can I get it to do what I want?
>
>on the page try print_r("$date\nTitle -
>$title\nFirstname - $firstname\nSurname - $surname\nDate of birth -
>$dob\nSmoker - $smoker\nGender - $gender\nDay telephone number -
>$tel_day\nEvening telephone number - $tel_eve\ne-mail -
>$email\nContact re - $insurance\nBorrower type -
>$borrower_type\nAmount - $amount\nTerm - $term\nCredit history -
>$credit_history");
>
>have you just tried mail("admin@domain", "Query from the web site",
>"$date"); does that work?
>
>Flamer.
Thanx for your response (I was away for a day and didn't see it before
now).
She's now changed her mind totally (I think, for a small, fluffy,
highly-coloured cushion...).
The idea of mailing the $Query is a good one - goes straight into my
second grey cell.
[Back to original message]
|