Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. Thanks, a href=? echo $_SERVER['PHP_SELF'].'?action=bigger';? $PHP_SELF should not be used because it will not work without

Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
oops, that should be htmlentities, not htmlspecialchars. - Jeff On 3-Oct-05, at 11:51 AM, Jeffrey Sambells wrote: $PHP_SELF should not be used because it will not work without register_globals being enabled. Rather, you should use $_SERVER ['PHP_SELF'] for it as above however... Don't

[PHP] passing a variable with php_self

2005-09-27 Thread Ross
can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. Thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] passing a variable with php_self

2005-09-27 Thread Jay Blanchard
[snip] can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. [/snip] echo $_GET['action'] . \n; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] passing a variable with php_self

2005-09-27 Thread Jim Moseby
-Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 8:58 AM To: php-general@lists.php.net Subject: [PHP] passing a variable with php_self can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Torgny Bjers
Ross wrote: can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. Easiest way to do that is to use sprintf() or printf(): ?php $link_title = click my self-referring link; printf('a

Re: [PHP] passing a variable with php_self

2005-09-27 Thread A.J. Brown
Subject: [PHP] passing a variable with php_self can someone show me the right way to do the following... a href=?=$PHP_SELF?action=bigger; ? I want to pass a variable to a self submitting link. Thanks, a href=? echo $_SERVER['PHP_SELF'].'?action=bigger';? -- PHP General Mailing List

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Norbert Wenzel
A.J. Brown wrote: a href=?=$PHP_SELF?action=bigger? works well too works only if register_globals is on, doesn't it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Gustav Wiberg
- Original Message - From: A.J. Brown [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, September 27, 2005 3:26 PM Subject: Re: [PHP] passing a variable with php_self a href=?=$PHP_SELF?action=bigger? works well too -- Sincerely, A.J. Brown Jim Moseby [EMAIL