Jump to content

Parameters in AJAX?


zyrolasting

Recommended Posts

Hello, hello.

 

I'm trying to wrap my head around AJAX so I can get something working without diving too deeply into PHP's DOM yet.

 

If I were to use the open() method in the XMLHttpRequest object to send a request to the server from JavaScript in the following fashion...

 

XHR.open("GET","../scripts/request.php?type=3",true);

 

How do I access that parameter when I have no implemented function in request.php? Do I just assume a variable called $type is initialized to 3 already and I didn't see it?

Link to comment
https://forums.phpfreaks.com/topic/178517-parameters-in-ajax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.