Re: [PHP-DB] PHP and mail forms

2004-02-02 Thread -{ Rene Brehmer }-
I wrote mine specially ... it runs with a preview phase which was pretty tricky to put in ... but the to-value is hardcoded in the script, cuz it just sends mail to [EMAIL PROTECTED] ... when the user fills in the form the script checks it for errors, and then either bounce back to the form if

Re: [PHP-DB] PHP and mail forms

2004-01-30 Thread Ricardo Lopes
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(); }

Re: [PHP-DB] PHP and mail forms

2004-01-30 Thread Ricardo Lopes
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