note 30263 added to ref.url

From: Date: Wed, 12 Mar 2003 16:16:39 +0000
Subject: note 30263 added to ref.url
Groups: php.notes 
Request: Send a blank email to php-notes+get-45155@lists.php.net to get a copy of this message
/* May be this is obvious but helps me since I found it: If I want to append a variable to the url and pass it to the same page. ( in this example I'm using action=email to include an email form on the user click) i do: */ // ... <a href="<? echo $PHP_SELF,'?',$_SERVER['QUERY_STRING'],'&action=email' ?>">email to us</a> // ... /* somewhere in the the page (in my case at the bottom) I have: */ <? if ($action=='email') include('emailForm.htm'); ?> -- http://www.php.net/manual/en/ref.url.php http://master.php.net/manage/user-notes.php?action=edit+30263 http://master.php.net/manage/user-notes.php?action=delete+30263 http://master.php.net/manage/user-notes.php?action=reject+30263

« previous php.notes (#45155) next »