I'm new in Ajax..
It's for a URL Shorten.
Upon form submit, I need to do that stuff, to short' the URL.. And I do that on a separate page, using php POST.
When that script is done and the shortened URL is generated, I need to present that to the user. (We have ti as a php variable, let's say $shorturl).
I know that it is possible to submit forms without page reloading using Ajax, but what I can't figure out is how to get a php variable from the page that processed the form, and present it to the user.
All this without refreshing the page, of course.
Anybody can tell me how to do this?
It's for a URL Shorten.
Upon form submit, I need to do that stuff, to short' the URL.. And I do that on a separate page, using php POST.
When that script is done and the shortened URL is generated, I need to present that to the user. (We have ti as a php variable, let's say $shorturl).
I know that it is possible to submit forms without page reloading using Ajax, but what I can't figure out is how to get a php variable from the page that processed the form, and present it to the user.
All this without refreshing the page, of course.
Anybody can tell me how to do this?
Comment