RE: [PHP] <form method="post" action="<?php echo $PHP_SELF?>">

From: Date: Sat, 30 Sep 2000 19:01:16 +0000
Subject: RE: [PHP] <form method="post" action="<?php echo $PHP_SELF?>">
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18170@lists.php.net to get a copy of this message
On Sat, 30 Sep 2000, Joe Sheble aka Wizaerd wrote: > > I want to use a different .php file to process the form instead > > of the page the form is on. Does anyone know the correct syntax > > for this. I have > > <form method="post" action="<?php echo $PHP_SELF?>"> > > > > and try using this. > > > > <form method="post" action="<?file.php>"> > > > > but it does not work. Thanks for any suggestions. > > Just use: > <form method="post" action="file.php"> A better way is: <form method="post" action="<?=basename($PHP_SELF)?>"> Mike -- Mike Erickson <mee@quidquam.com> http://www.quidquam.com/ "Of those who say nothing, few are silent." -Thomas Neiel

« previous php.general (#18170) next »