I am in a bit of a pickle...
I have a form with two input fields which gets send to a php file now I want to implement Ajax so that the results can load on the same page without having to refresh.
For the life of me I can't figure out how to achieve this.
I post two variables to the php file ( $url1 & url2 )
The php then does some magic via a bunch of preg_matches.
and then loads the new page with the results echoed
I now want to use Ajax instead to load content and echo the varies results of the php file.
But I am so new to ajax ( started a few hours ago ) that I have no clue how to do this.
----
The rest of the site works beautifully I can load content dynamically no problem, it's just with this submit and php functions part that is breaking my brain a little bit.
I have a form with two input fields which gets send to a php file now I want to implement Ajax so that the results can load on the same page without having to refresh.
For the life of me I can't figure out how to achieve this.
I post two variables to the php file ( $url1 & url2 )
The php then does some magic via a bunch of preg_matches.
and then loads the new page with the results echoed
I now want to use Ajax instead to load content and echo the varies results of the php file.
But I am so new to ajax ( started a few hours ago ) that I have no clue how to do this.
----
The rest of the site works beautifully I can load content dynamically no problem, it's just with this submit and php functions part that is breaking my brain a little bit.