Jump to content

Recommended Posts

Hello,

New here, I have an <a> & I would like to send data into my MySQL Database from a .php page , it's a forum type thing , favourite link :~/ What is the Best way to do this ? Can anyone help please ? I should add I do Not wont to Post a Form !

Thank-You

Sid 

Edited by sirsid
10 minutes ago, sirsid said:

Hello,

New here, I have an <a> & I would like to send data into my MySQL Database from a .php page , it's a forum type thing , favourite link :~/ What is the Best way to do this ? Can anyone help please ? I should add I do Not wont to Post a Form !

Thank-You

Sid 

AJAX (Asynchronous JavaScript and XML) lets you send data to a PHP script in the background, without the page reloading. This is what happens on sites like Twitter when you click "Like" or on Gmail when you archive an email.

Also, you need to create the PHP script that will reads the data  and sends back a JSON response for the JavaScript to read.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.