Re: form post without pathinfo

From: Date: Sun, 18 Mar 2001 15:11:49 +0000
Subject: Re: form post without pathinfo
Groups: php.general 
Request: Send a blank email to php-general+get-44436@lists.php.net to get a copy of this message
Yeah, I just can't figure out how to do it. Anyone care to enlighten me? Clayton Dukes ----- Original Message ----- From: Chris Anderson To: Clayton Dukes Sent: Wednesday, March 14, 2001 1:04 PM Subject: Re: [PHP] form post without pathinfo Sounds like you just need to use $PHP_Self with your other variables after it, that way it gets the right settings ex: echo $PHP_SELF$color$etc ----- Original Message ----- From: Clayton Dukes To: php-general@lists.php.net Sent: Saturday, March 17, 2001 4:57 PM Subject: [PHP] form post without pathinfo Hi :-) How can I convert from this: <form method=POST action="<? echo $PHP_SELF; ?>/approve"> </form> ...snip } elseif ($pathinfo == "/approve") { do something... to something that posts to itself without altering the path? My problem is, I'm using themes which are dependent on the path, so if I post using the method above, the path changes and screws up the images, colors, etc after the user submits. TIA! Clayton Dukes -------------------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#44436) next »