Re: [PHP] identifying clicked link?

2001-01-17 Thread Angus Mann

At 23:10 17/01/01 -0500, andrew wrote:
>How can I pass an anchor tag attribute to a page?
>e.g. If I want to echo "1" on page_two:
>
>
>page_one.php contains:
>
> click

All you're doing there is setting the variable id to "1". You're not even 
printing it.

>page_two.php contains:
>
>
>
>but page_two is coming up blank after a delay... what I am doing wrong?

Alot :)

You have to use forms if you want to pass variables along between pages, 
unless you use cookies or PHP4 sessions (which use cookies).

You could use standard URL anchors for moving between pages and passing 
variables along - they'd have to be GET type. e.g.

page_one.php would be: (although it could be shortened or formatted 
differently)

 click ";
?>

and page_two.php would be:



I suggest you read through the PHP manual some more, especially the section 
on Variables, and the sub-section "Variables from outside PHP" 
(http://www.php.net/manual/en/language.variables.external.php). It would 
also be a good idea to read through some tutorials from some PHP websites, 
such as:

http://www.phpbuilder.com/
http://www.phphelp.com/

Those two should also have some links to other sites.

Good luck!

Angus.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] identifying clicked link?

2001-01-17 Thread andrew

Phillip,

Thanks!  This is very helpful!

I very much appreciate it.

regards,
andrew


On 1/17/01 11:20 PM, "Philip Olson" <[EMAIL PROTECTED]> wrote:

> Andrew,
> 
> Close :-)
> 
>   click
> 
> OR to complicate matters, add multiple names/values  :
> 
>   click
> 
> Where on page_two.php if you had :
> 
>   echo "$id $foo $blah";
> 
> Will print the following :
> 
>   1 stuff shoes
> 
> Note the ? for first name=value and & for the proceeding ones.  Or you may
> have been trying to do :
> 
>   $id = 1;
> 
>   echo "click";
> 
> OR can also be written as :
> 
>   $id = 1;
> 
>   click
> 
> And both the above will turn into :
> 
>   click
> 
> That's the gist.  Check out devshed.com for some basic php tutorials.
> Also, be sure to check out :
> 
>   http://www.zend.com/zend/tut/using-strings.php
> 
> For various forms of syntax with strings.
> 
> 
> Philip
> 
> 
> On Wed, 17 Jan 2001, andrew wrote:
> 
>> How can I pass an anchor tag attribute to a page?
>> e.g. If I want to echo "1" on page_two:
>> 
>> 
>> page_one.php contains:
>> 
>>  click
>> 
>> 
>> page_two.php contains:
>> 
>> 
>> 
>> but page_two is coming up blank after a delay... what I am doing wrong?
>> 
>> 
>> thanks,
>> andrew
>> 
>> 
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] identifying clicked link?

2001-01-17 Thread Philip Olson

Andrew,

Close :-)

click

OR to complicate matters, add multiple names/values  :

click

Where on page_two.php if you had :

echo "$id $foo $blah";

Will print the following :

1 stuff shoes

Note the ? for first name=value and & for the proceeding ones.  Or you may
have been trying to do :

$id = 1;

echo "click";

OR can also be written as :

$id = 1;

click

And both the above will turn into :

click

That's the gist.  Check out devshed.com for some basic php tutorials.
Also, be sure to check out :

http://www.zend.com/zend/tut/using-strings.php

For various forms of syntax with strings.


Philip


On Wed, 17 Jan 2001, andrew wrote:

> How can I pass an anchor tag attribute to a page?
> e.g. If I want to echo "1" on page_two:
> 
> 
> page_one.php contains:
> 
>  click
> 
> 
> page_two.php contains:
> 
> 
> 
> but page_two is coming up blank after a delay... what I am doing wrong?
> 
> 
> thanks,
> andrew
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] identifying clicked link?

2001-01-17 Thread andrew

How can I pass an anchor tag attribute to a page?
e.g. If I want to echo "1" on page_two:


page_one.php contains:

 click


page_two.php contains:



but page_two is coming up blank after a delay... what I am doing wrong?


thanks,
andrew


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]