Actually, this works very similar to Javascript in that you can use
javascript to parse the URL and thus read values from the previous
page. PHP will declare the variables with the values based on the URL,
you don't even have to parse it.
If your URL/HREF is like this:
PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a href tag
on 27/07/02 12:09 PM, Michael ([EMAIL PROTECTED]) wrote:
?php
function joe() {
$temp1=10;
$temp2=20;
$result=$temp1+$temp2;
echo The result of this function is: . $result;
}
?
wouldn't
Hi, everyone.
There MUST be some creative way to call a user-defined PHP function from
an a href tag. Does anyone have any suggestions?
For example:
==
html
a href=?php joe(); ? Click here to start function joe(). /a
?php
There MUST be some creative way to call a user-defined PHP function
from
an a href tag. Does anyone have any suggestions?
Yeah, I got one. It's kind of crazy, but how about we assume PHP is
server side and anything that happens in the browser is called, well,
let's say client side. Let's, for
on 27/07/02 12:09 PM, Michael ([EMAIL PROTECTED]) wrote:
?php
function joe() {
$temp1=10;
$temp2=20;
$result=$temp1+$temp2;
echo The result of this function is: . $result;
}
?
wouldn't that be
return The result of this function is: . $result;
rather than echo?
Anyhoo, you haven't
:
Date: Sat, 27 Jul 2002 11:35:23 +1000
From: Justin French [EMAIL PROTECTED]
To: Michael [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a href tag
on 27/07/02 12:09 PM, Michael ([EMAIL PROTECTED]) wrote:
?php
function joe() {
$temp1=10
function.
Tricky, I know. :(
-- Michael
On Sat, 27 Jul 2002, Justin French wrote:
Date: Sat, 27 Jul 2002 11:35:23 +1000
From: Justin French [EMAIL PROTECTED]
To: Michael [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a href tag
on 27/
PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a href tag
Easy
Your form when pressed the button submit will send the data from the form
via post (Which is the best method) to the functions.php with all the
functions. What you need to modify now
From: Justin French [EMAIL PROTECTED]
To: Michael [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a href
tag
on 27/07/02 12:09 PM, Michael ([EMAIL PROTECTED]) wrote:
?php
function joe() {
$temp1=10;
$temp2=
--Original Message Text---
From: Michael
Date: Fri, 26 Jul 2002 21:09:13 -0500 (EST)
Hi, everyone.
There MUST be some creative way to call a user-defined PHP function from
an a href tag. Does anyone have any suggestions?
For example:
Check out http://www.faqts.com/knowledge_base/view.phtml/aid/277/fid/40
Essentially you'll want to use this this combined with get variables hard
coded into your url. For example:
a href=script.php?action=function1function 1/a
a href=script.php?action=function2function 2/a
At 11:13 PM
less you tell me some neat trick I don't
know about yet). See my struggle now?
On Fri, 26 Jul 2002, Mathieu Dumoulin wrote:
Date: Fri, 26 Jul 2002 21:46:00 -0400
From: Mathieu Dumoulin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] calling user-defined php functions from a
12 matches
Mail list logo