Hi
Im am trying to pass a unique reference number to the database without leaving the page, any tips how to do this?
Basically there will be a link "add to shortlist" you click this then the data stored in the link will be added to the database, the page is also mod rewritten if this makes a difference http://www.test.com/forsale/3-beds-2-ba ... nt/R121212 for example
Add to shortlist
Moderator: General Moderators
Re: Add to shortlist
AJAX?leewad wrote:Im am trying to pass a unique reference number to the database without leaving the page, any tips how to do this?
Re: Add to shortlist
i have had a look at ajax but not sure how to use it
Re: Add to shortlist
Take a look at this: http://api.jquery.com/jquery.ajax/
Essentially you create a PHP script (or controller action) that handles the DB interaction and use JS to interact with it rather than having the browser go there directly.
Essentially you create a PHP script (or controller action) that handles the DB interaction and use JS to interact with it rather than having the browser go there directly.