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
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
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'])
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
['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
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