Wednesday, 2 October 2013

Javascript get content from PHP

Javascript get content from PHP

I am having a php page that take in a parameter e.g
mypage.php?keyword=SOMEVALUE
But the keyword is an ajax value that user enter at a html form which run
with jQuery.
I need to like let the user enter the value in a text field , and retrieve
data from mypage.php and set it into the value of field1.
How do I do it? I see that some site mention javascript respect same
origin policy, what should I do?

No comments:

Post a Comment