[PHP] Jump to internal link after $PHP_SELF post
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: Let's assume that $value represents FOO. Now i want to take the value of this variable to post to $PHP_SELF. Example: \n";. The HTML-source should show something like This does not work... Output on the source is like , so $value appears to be empty. Please help, sombody?? Thanks! Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Jump to internal link after $PHP_SELF post
Thanks for the quick reaction. > When is $value assigned a value? Before or after the script prints out > the ", so $value would be "para1"). After posting to SELF a jump to para1 must be made. Is this enough? Thanx, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Jump to internal link after $PHP_SELF post
>It depends on where value is coming from. If it's coming from the >script server side, then you just need to make sure that $value is >set before the line "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Jump to internal link after $PHP_SELF post
Hi Chris, Just a small modification and it works!!! Many thanks! Syntax: onclick=\"document.pageform.action='$PHP_SELF#$value'; submit()\" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]