RE: [PHP] OnClick problem
| From: | Dan Joseph | Date: | Thu, 10 Jul 2003 19:08:42 +0000 |
| Subject: | RE: [PHP] OnClick problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154779@lists.php.net to get a copy of this message | ||
Hi,
> Here's something I cant explain:
> I have a page with a form on it (checkboxes) and a hyperlink which is
> supposed to send the form to the server using:
> <a href="#" onClick="document.del.submit();">
> Trouble is that the link always points to the name of the
> previous page I
> came from. All pages are php generated on-the-fly.
> Is this a php problem? Anyone has a clue?
> I really don't want to use a submit button in this case.
Are you using the variable $_SERVER['PHP_SELF'] for your link target?
-Dan Joseph