your code should pass a minimum of information through the form, because you must validate ALL form/external data before using it.
your current method also exposes all the users email addresses and probably allows someone to submit any email address to your form processing code and it will get used as the email address to send to.
you should only pass the user_id through the form, then query for the corresponding email address in the form processing code. also, any data you store or up
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Recommended Posts
Posted by mac_gyver,
Best practice method
Recommended by Barand
1 reaction
Go to this post
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.