sirsid Posted 9 hours ago Share Posted 9 hours ago (edited) 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 9 hours ago by sirsid Quote Link to comment https://forums.phpfreaks.com/topic/329080-not-sure-data-from-an-tag-into-database-~/ Share on other sites More sharing options...
Olumide Posted 9 hours ago Share Posted 9 hours ago 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. Quote Link to comment https://forums.phpfreaks.com/topic/329080-not-sure-data-from-an-tag-into-database-~/#findComment-1655538 Share on other sites More sharing options...
sirsid Posted 8 hours ago Author Share Posted 8 hours ago Thank-You I shall look into that :~) Sid Spoiler Quote Link to comment https://forums.phpfreaks.com/topic/329080-not-sure-data-from-an-tag-into-database-~/#findComment-1655539 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.