Advertisement

10.13.2007 at 02:29AM PDT, ID: 22891133
[x]
Attachment Details

call a php function from a button

Asked by lesouef in JavaScript

Tags: php, function, button, call

how can I call a php function from a button (onClick=....)?
it works if I call an external php script, using javascript:location.href=... but not when calling a function declared in the same file.
php function is ok and works if called within the php code.
the only thing I could do was to trigger a javascript function which does an echo of all php lines. pretty heavy...
does anyone has a smarter way?Start Free Trial
[+][-]10.13.2007 at 03:11AM PDT, ID: 20070649

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.13.2007 at 07:20AM PDT, ID: 20071049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2007 at 07:22AM PDT, ID: 20071054

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2007 at 01:20PM PDT, ID: 20071885

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: php, function, button, call
Sign Up Now!
Solution Provided By: nizsmo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.14.2007 at 02:52AM PDT, ID: 20073263

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906