RE: [PHP] Jump to internal link after $PHP_SELF post
| From: | Boget, Chris | Date: | Thu, 15 Nov 2001 14:39:26 +0000 |
| Subject: | RE: [PHP] Jump to internal link after $PHP_SELF post | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74710@lists.php.net to get a copy of this message | ||
> A large page is generated with data from a MySQL database. The various
> paragraphs inside this page have variable, internal links,
> also extracted from the database.
> Example: <a name=\"$value\"></a>
> Let's assume that $value represents FOO.
Ok
> Now i want to take the value of this variable to post to $PHP_SELF.
> Example: <form action=\"$PHP_SELF#$value\" method=\"post\">\n";.
> The HTML-source should show something like <form
> action="/domain/page.php#FOO" method="post">
Seems straightforward enough...
> This does not work... Output on the source is like <form
> action="/domain/page.php#" method="post">, so $value appears
> to be empty.
When is $value assigned a value? Before or after the script prints out
the "<form action=" line?
Chris