ST['mysql'])) {
//do whatever you want with the
//$_POST['mysql'] variable and output the results
//the you want to be shown in the div with id resultsdiv
}
--
Best regards,
Peter Lauri
-Original Message-
From: Aras [mailto:[EMAIL PROTECTED]
You can not call PHP functions through a href which is used for linking web
pages.
You need to create a new file or use a switch in your current file for
search input,
with the function in it. So that you can link to that URL, not the function
itself.
You can use AJAX as well, to send commands t
Jahangir wrote:
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
Hi,
Are you trying to use PHP as a client scripting language?
What you are doing cannot be done with plain PHP, you have to invoke
JavaScript or similar to make a HTTP request and then parse it.
Search Google for "AJAX" and you could get it working using that. Prototype
is a easy to use JS libra
Jahangir wrote:
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
From: "Jason Wong" <[EMAIL PROTECTED]>
> On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
> > From: "Vincent M." <[EMAIL PROTECTED]>
> >
> > > Is there any way to call a function with a variable inside the call.
ie:
> > >
> > > if($preferences != "") {
> > > dis_display$$pr
On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
> From: "Vincent M." <[EMAIL PROTECTED]>
>
> > Is there any way to call a function with a variable inside the call. ie:
> >
> > if($preferences != "") {
> > dis_display$$preferences() ;
>
> $functon = "dis_play$preferences";
>
From: "Vincent M." <[EMAIL PROTECTED]>
> Is there any way to call a function with a variable inside the call. ie:
>
> if($preferences != "") {
> dis_display$$preferences() ;
$functon = "dis_play$preferences";
$function();
---John Holmes...
--
PHP General Mailing List (http://www.php.
I got it, I think:
and this at the beginning of file "B"
$selected == "$selected";
and placed this statement in file "A"
if (isset($selected[$cat]))
{
include ("cat_select.php");
}
I don't know why it works but it does, is there anything wrong with this method?
Gerry wrote:
>
> I hope yo
9 matches
Mail list logo