Jump to internal link after $PHP_SELF post
| From: | Rob van Jaarsveld | Date: | Thu, 15 Nov 2001 14:24:40 +0000 |
| Subject: | Jump to internal link after $PHP_SELF post | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74709@lists.php.net to get a copy of this message | ||
Hi there....
The following problem occurs in my scripts:
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.
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">
This does not work... Output on the source is like <form
action="/domain/page.php#" method="post">, so $value appears to be empty.
Please help, sombody??
Thanks!
Rob.