Sergi
29.08.2001, 18:13
Hi all,
this is intriguing me a lot. I'm totally new to php and would like to know how could i do the following. Suppose you enter a page, interact with the interfaces and as a result you have 3 variables. I want to send these variables to my mailbox and deliver a confirmation page with the 3 variables for the visitor to know everything is ok. NOTE; it's not from a form, just 3 variables.
The problem is that when i write the php function it automatically executes on page load, so i cannt control the moment thru javascript. I use something like:
<?
$ml="info@meddle.f2s.com";
$sj="Hi from meddle";
$ms="just this";
if (mail($ml,$sj,$ms)) {
print("OK");
} else {
print("NOPE");
}
?>
+which automatically sends the message on page load, not when i want. Also, i would need to be able to change the variables before sending.
Any help very apreciated.
TIA
cu
<font color=green>
Sergi: [url="http://www.meddle.f2s.com"][site][/url:ntvfn0s1un] || [url="sergi@dhtmlcentral.com"][e][/url:ntvfn0s1un]
</font id=green>
Edited by - sergi on 29 Aug 2001 4:14:43
this is intriguing me a lot. I'm totally new to php and would like to know how could i do the following. Suppose you enter a page, interact with the interfaces and as a result you have 3 variables. I want to send these variables to my mailbox and deliver a confirmation page with the 3 variables for the visitor to know everything is ok. NOTE; it's not from a form, just 3 variables.
The problem is that when i write the php function it automatically executes on page load, so i cannt control the moment thru javascript. I use something like:
<?
$ml="info@meddle.f2s.com";
$sj="Hi from meddle";
$ms="just this";
if (mail($ml,$sj,$ms)) {
print("OK");
} else {
print("NOPE");
}
?>
+which automatically sends the message on page load, not when i want. Also, i would need to be able to change the variables before sending.
Any help very apreciated.
TIA
cu
<font color=green>
Sergi: [url="http://www.meddle.f2s.com"][site][/url:ntvfn0s1un] || [url="sergi@dhtmlcentral.com"][e][/url:ntvfn0s1un]
</font id=green>
Edited by - sergi on 29 Aug 2001 4:14:43