Re: [PHP] calling user-defined php functions from a href tag

2002-07-29 Thread Brent Baisley
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:

Re: [PHP] calling user-defined php functions from a href tag

2002-07-27 Thread Justin French
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

[PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Michael
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

RE: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread John Holmes
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

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Justin French
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

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Michael
: 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

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Mathieu Dumoulin
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/

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Michael
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

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Mathieu Dumoulin
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=

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Bob Lockie
--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:

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Nick Oostveen
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

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Chris Earle
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