RE: [PHP] <form method="post" action="<?php echo $PHP_SELF?>"> From: Mike Erickson (mee <email protected>)
Date: 09/30/00

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 <email protected>> http://www.quidquam.com/
"Of those who say nothing, few are silent." -Thomas Neiel 

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>