php-windows Digest 12 Jan 2004 09:21:29 -0000 Issue 2077

Topics (messages 22545 through 22552):

Calling a function from a hyperlink
        22545 by: kaizer boab
        22546 by: Mike Brum
        22547 by: Stuart
        22548 by: kaizer boab
        22549 by: Stuart
        22550 by: kaizer boab

Re: Problem with Notices
        22551 by: mmdrake.bctonline.com

PHP hangs in Windows/XP
        22552 by: Damjan Rems

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Is it possible to call a function from a hyperlink, and if so how do you go
about it?

Thanks in advance,
Boab

--- End Message ---
--- Begin Message ---
Can you be a bit more clear on "calling a function from a hyperlink"? If
you're referring to that in the JavaScript sense, then no.

If you mean "how do I submit a form from a text link" then that's also done
through JavaScript, but it still POSTs/GETs a page on your server and you
return content. 

Regards
-M  

-----Original Message-----
From: kaizer boab [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 10, 2004 9:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Calling a function from a hyperlink

Is it possible to call a function from a hyperlink, and if so how do you go
about it?

Thanks in advance,
Boab

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- Mike Brum wrote:
Can you be a bit more clear on "calling a function from a hyperlink"? If
you're referring to that in the JavaScript sense, then no.

No?


<a href="javascript:myFunction();">link</a>

Works in most browsers I've come across.

--
Stuart

--- End Message ---
--- Begin Message ---
The problem I have is this:

I have built a shopping cart using a session. I have an addItem() function,
and I was wondering if it were possible to call this function using a
hyperlink.
At the moment when a user clicks to add an item they are directed to the
"add.php" page as below:

<a href=\"add.php?dvd_no={$row['dvd_no']}\">+</a>

I want to have my addItem() function in all shopping pages but I only want
it accessed via a link. Is this possible?

"Kaizer Boab" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is it possible to call a function from a hyperlink, and if so how do you
go
> about it?
>
> Thanks in advance,
> Boab

--- End Message ---
--- Begin Message --- kaizer boab wrote:
The problem I have is this:

I have built a shopping cart using a session. I have an addItem() function,
and I was wondering if it were possible to call this function using a
hyperlink.
At the moment when a user clicks to add an item they are directed to the
"add.php" page as below:

<a href=\"add.php?dvd_no={$row['dvd_no']}\">+</a>

I want to have my addItem() function in all shopping pages but I only want
it accessed via a link. Is this possible?

Create an include file that checks $_GET for a particular variable. If it's there call addItem, if not do nothing. Then include that file in all pages that need to handle adding items.


--
Stuart

--- End Message ---
--- Begin Message ---
Thanks Stuart,

I'll give that a try.


"Stuart" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> kaizer boab wrote:
> > The problem I have is this:
> >
> > I have built a shopping cart using a session. I have an addItem()
function,
> > and I was wondering if it were possible to call this function using a
> > hyperlink.
> > At the moment when a user clicks to add an item they are directed to the
> > "add.php" page as below:
> >
> > <a href=\"add.php?dvd_no={$row['dvd_no']}\">+</a>
> >
> > I want to have my addItem() function in all shopping pages but I only
want
> > it accessed via a link. Is this possible?
>
> Create an include file that checks $_GET for a particular variable. If
> it's there call addItem, if not do nothing. Then include that file in
> all pages that need to handle adding items.
>
> -- 
> Stuart

--- End Message ---
--- Begin Message --- Madeleine D. wrote:
I have the following error writes set in my php.ini file:

error_reporting = E_ALL & ~E_NOTICE



I'm posting a response to this for the next poor soul who might come along.

After long, lost hours, we still don't have an explanation as to why the php.ini settings are being ignored, but we do have a solution - culled from a similar posting on the php bug site.

We've added the line:

error_reporting(E_ALL & ~E_NOTICE);

to our first screen. That seems to hold for all the screens called thereafter. Instead of 3000+ notice lines, which was impacting performance in a major way, we now have the two or 3 warnings that we expect.

thanks for all the other suggestions.

Madeleine D.
--- End Message ---
--- Begin Message ---
Can anybody confirm this bug scenario?

Windows XP-SP1, PHP 4.3.4 or 5.0.0b3,F-Secure Antivirus 5.41
When running the simpliest script from documentation in Windows COMMAND
prompt, window hangs. Ctrl+C doesn't help. Window has to be killed.

I also found this:
F-Secure Active, PHP run from local drive (C:\PHP)  - Hangs
F-Secure Active, PHP run on network (F:\PHP)  - Hangs

F-Secure Disabled, PHP run from local drive (C:\PHP)  - Hangs
F-Secure Disabled, PHP run on network (F:\PHP)  - OK

I have no problems running on Windows 2000, with F-Secure enabled.


This realy is a bad start with PHP for me.

By

TheR

--- End Message ---

Reply via email to