Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   How to insert values from form into database table when it is sent as mail? (http://www.go4expert.com/forums/insert-values-form-database-table-sent-t1666/)

smm 18Oct2006 18:39

How to insert values from form into database table when it is sent as mail?
 
:confused:
I have used a javascript to send a mail to the client which contains some values from the form..what should i do to enter these values into the database table at the same time it sends a mail..actually when the submit button is clicked it redirects to another page..

is there any way to clear this problem..

pradeep 19Oct2006 11:09

Re: How to insert values from form into database table when it is sent as mail?
 
JavaScript can't send mail on its own, you must be submitting the form data to a server-side script with sends out the mail, if you can write a server-side script with accepts the form data, inserts it into the database and then sends out the mail, then your problem is solved.
JavaScript is a client side scripting language, its capabilities are limited to the machine it is executed on (i.e. the client's browser), so you have to post the data to some server-side script.

ryan 19Oct2006 20:57

Re: How to insert values from form into database table when it is sent as mail?
 
Try using a simle PHP script ;)


All times are GMT +5.5. The time now is 15:06.