I would recomed you to use: $to_name=$myrow[3].$string; <-- Notice the dot . and no " instead of: $to_name="$myrow[3]$string"; > On hitting the submit button, I see the server being called and data being sent, but > nothing is being received. I'm just wondering if I've appended those two things correctly. If you mean the server sends the email but it isnt recived in the other server i can't help you i dont use the mail function, in this kind of questions you should use the other mailing list instead of this, this is only from database questions related to php. Good luck. BTW i guess there are other function you could use for sending email instead of mail consult the php documentation to know more. ----- Original Message ----- From: "Phil Matt" <philm@xxxxxxxxxxxxxxx> To: <php-db@xxxxxxxxxxxxx> Sent: Friday, January 30, 2004 4:18 PM Subject: PHP and mail forms > Ricardo Lopes wrote: > > > There are several ways to do this. > > Some people like the approach: > > > > if ($submit) { send_email(); } > > > > or you can put a hidden field in your form, like op: > > > > <input name="op" type="hidden" id="op" value="send" /> > > > > and use: > > > > if (isset($HTTP_GET_VARS['op']) && ($HTTP_GET_VARS['op'] == 'send')) > > { > > send_email(); > > } > > Thanks again, Ricardo. I now have the form communicating with the server. > > I think that I might have an error in my script: > > Where I join together the value of the passed variable ("$myrow[3]") and the string > containing the domain ( $string="@somedomain.com") I used: > > $to_name="$myrow[3]$string" > > If the passed variable's value is, for instance, "smith", then does my $to_name become: > > smith@xxxxxxxxxxxxxx > > On hitting the submit button, I see the server being called and data being sent, but > nothing is being received. I'm just wondering if I've appended those two things correctly. > > TIA for your continued assistance. > > Cheers --- Phil > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php