Skip to content
Advertisement

i want to send a javascript prompt answer to my sql databse, is this possible or is there a better way to do this? [closed]

currently have this code activated by a html button:

i wanna send the value of group in a sql query in some way, so it can creaty a unique id and use that as my groupid. i think i have to use ajax, but im unable to find a tutorial for this.

Advertisement

Answer

  1. Add jquery.js reference (e.g. jquery-1.10.2.js)
  2. use ajax in place of your original call to template.php

For example in your template.php:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement