Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
99
rated 0 times [  101] [ 2]  / answers: 1 / hits: 60306  / 11 Years ago, wed, december 25, 2013, 12:00:00

I have created a javascript for check the text boxes are empty. if one of text box is empty the return false. so how can i get that return value to a PHP variable ?


More From » php

 Answers
80

For linking javascript with php need to use AJAX http://api.jquery.com/jQuery.ajax/



$.ajax({
type: POST,
url: some.php,
data: { name: John, location: Boston }
})
.done(function( msg ) {
alert( Data Saved: + msg );
});

[#73557] Monday, December 23, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kylee

Total Points: 60
Total Questions: 119
Total Answers: 101

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
;