Jump to content

Updating MySQL (email)


RON_ron

Recommended Posts

yes - they are supposed to fill a form online.

 

If you are suggesting to send the data direct from the ONLINE FORM to the MySQL,

1. I need a way to check the submitted data before adding them to the MySQL.

2. How safe is it to allow the user to directly update a MySQL db?

1. I need a way to check the submitted data before adding them to the MySQL.

 

Google PHP form validation. Essentially check each submitted value to ensure that it is valid. You'd have to do this either way, whether the form data is taken directly from the form or from an email created via the form.

 

2. How safe is it to allow the user to directly update a MySQL db?

 

As safe as you make it. Validation of the field values is the first step, then use mysql_real_escape_string() as necessary to make values ready for the database. Again, if your plan is to automatically insert whatever is in an email, the user is essentially "directly updating" MySQL anyway.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.