Re: form handling problem
| From: | Meir Kriheli | Date: | Wed, 19 Sep 2001 08:59:04 +0000 |
| Subject: | Re: form handling problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67800@lists.php.net to get a copy of this message | ||
On Monday 17 September 2001 06:01, Nikola Veber wrote:
> Hi !
>
> I have a form
> <form target = "<?php echo $PHP_SELF ?>;" METHOD = get>
> Is there a way to open PHP_SELF in the same window, not in the new one ?
It should be
<form action = "<?php echo $PHP_SELF; ?>" METHOD = get>
target is used as the name of the frame or window used for the submission.
see:
http://www.w3.org/TR/REC-html40/interact/forms.html#edef-FORM
BTW,
You've misplaced the semicolon, it should be inside the PHP statement.
> Thanks
> Nikola