> Posted by: "codewriter12345" no_reply@yahoogroups.com codewriter12345
> Date: Mon Nov 19, 2007 10:26 am ((PST))
>
> Hello,
> How I can send a data in Json format to a server page (PHP) and then
> update the MYSQl database.
1. In JS, assemble the desired data into a string in JSON format.
2. Update the value of a hidden form field with this string.
3. Submit the form.
4. In PHP, get the value of the form field from $_POST.
5. Assemble an appropriate SQL UPDATE statement and execute it.
cheers
jon.
>
> Regards,
> Devan
--
This message has not been scanned for viruses.
Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.
Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/JavaScript_Official/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/JavaScript_Official/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
Tidak ada komentar:
Posting Komentar