Email with php and mysql
I want a visitor to my site to click on a mysql field to send an email with a Bcc to myself also I want the link to show "Send an email" not the email address from the field
I want a visitor to my site to click on a mysql field to send an email with a Bcc to myself also I want the link to show "Send an email" not the email address from the field
Many thanks for the reply and solution with regard to your comments about this not being the best way to go about it
would putting the Bcc address into a variable or constant hide it and how would be the best way to handle the other problem
Have just ordered PHP Soulutions do you reccomend any other books for someone just starting PHP and Mysql and Databases
Cheers
There is no way to hide a BCC address with a mailto link because it simply opens the user's mail program with the address fields filled in.
What I would recommend is creating a contact form as described in Chapter 5 of PHP Solutions. Using PHP to send the form hides both your email address and any BCC addresses. It sounds from your description that the email will be sent to different people depending on which link is clicked. If that's the case, the programming becomes more complex, but you can tackle that problem once you have learned how to create a contact form and send email with PHP.
I would hope that PHP Solutions is sufficient for your needs, but I warn you to take Chapter 3 slowly. Don't attempt to memorize everything in Chapter 3. Just get a general feel for how the language is structured, and come back to the chapter any time you need to refresh your memory. If you do feel the need for another book, I believe that Larry Ullman's Visual Quick Start books are good.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.