php - PHP_SELF and GET parameters -


when using $_server['php_self'] in form redirect page itself, such this:

<form method = "get" action = "<?php echo $_server['php_self']; ?>">     ...some html </form> 

when user submits form uri doesn't show parameters:

http://example.com/page.php 

instead of (the 1 i'm trying do)

http://example.com.page.php?parameter=value 

resulting in, when user refreshes page, not process parameters because not there. how can resolve this?

you can put empty form action in following example:

<form action="" method="get"> 

all parameters preserved


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -