[PHP-DB] How to test PHP form for proper input

2007-08-03 Thread Phil Matt
I've got a mail form that automatically pulls in the addressee from a MySQL db, and lets the sender fill in his/her own info before sending. I figured out how to set up tests for legal input in the different fields, but I don't know how to incorporate the test results into my form submission

[PHP-DB] Mailto and PHP

2007-06-14 Thread Phil Matt
De-lurking here. I am trying to modify a mailing script that I originally wrote to use a small form to send mail to different people from a MySQL database. I would like to modify it so that instead of using a form, the user's regular default email program opens on activating the link. I can't

[PHP-DB] PHP and mail forms

2004-01-30 Thread Phil Matt
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'])

[PHP-DB] PHP and mail forms

2004-01-29 Thread Phil Matt
on the various PHP lists and sources, but I just cannot figure out this piece of the puzzle. TIA for your suggestions, and for your patience with my lack of knowledge here. -- Phil Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Problem with passing variables

2004-01-27 Thread Phil Matt
['recip']; echo $recip; ? However, all this manages to do is to print out this: Send e-mail to $myrow[0] Instead of the VALUE contained in the variable! What am I doing wrong? TIA --- Phil Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP-DB] Problem with passing variables

2004-01-27 Thread Phil Matt
that the syntax would be (where $foo is another variable) a href=email.php?foo='.$myrow[3].'?recip='.$myrow[0].' Thanks again for restoring my sanity! Cheers --- Phil Matt