data save on button click
-
hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D
-
hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D
-
hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D
You will have to have an AJAX function that updates the database. There are 3 components here- 1. AJAX script: http://whatsaranjit.com/includes/grabData.js[^] 2. A button that calls AJAX:
<input type=button value=Update onClick="grabData('value','IDofDiv', page.php)'>
3. A user-facing page with a text field. When the button is pushed, object.value (or whatever value) is passed to page.php as a $GET['q']. The PHP page should receive the $_GET['q'] as process a mysql_query() to update the database. The 'IDofDiv' is optional if you'd like the output of page.php to report content in between <div id=IDofDIv></div>. Good luck! Ranjit Viswakumar Professional Services Specialist rviswakumar@hostmysite.com HostMySite.com[^]