I want to call a .php file from the OnClick event.
<input id="Edit" name="Edit" value="Edit Record" type="button" onclick="---call to php file----;" />
The code is show above. I want to call a .php file through Javascript and pass a cookie value in the query string.
If you do not want to point the browser to the .php page, you are looking for AJAX.
AJAX with JQuery
AJAX with Prototype
AJAX with Matt Kruse’s Ajax toolbox
if you want to take the browser to the .php page, it’s as easy as this: