Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
118
rated 0 times [  124] [ 6]  / answers: 1 / hits: 24066  / 15 Years ago, thu, december 17, 2009, 12:00:00

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.


More From » php

 Answers
8

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:



location.href = 'mypage.php';

[#98049] Monday, December 14, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alli

Total Points: 409
Total Questions: 101
Total Answers: 105

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
alli questions
Sat, Apr 23, 22, 00:00, 2 Years ago
Mon, May 18, 20, 00:00, 4 Years ago
Tue, Mar 24, 20, 00:00, 4 Years ago
Fri, Jan 24, 20, 00:00, 4 Years ago
;