using submit button and PHP-HELP

From: Date: Mon, 22 Sep 2003 14:18:51 +0000
Subject: using submit button and PHP-HELP
Groups: php.general 
Request: Send a blank email to php-general+get-163472@lists.php.net to get a copy of this message
Hi, I have a form that has a submit button in it, when the button is pressed I want it to reload the same page, with the same URL, however when I click on the submit button, the URL that it produces is http://whatever.php? then the name of my submit button = value for example: <form action="<?php echo($PHP_SELF); ?>" type=post> <input type="checkbox" value=" . $ID . " name=""> Request this abstract! <input type="submit" value="Request" name="reqPaper"> </form> this gives a URL of: http://localhost/ebLatest/indpaper.php?reqPaper=Request instead of the previous URL that was .php?ID=110 What I want to know is why the name and value of the submit button are being displayed in the URL? also why doesnt the ?php echo($PHP_SELF); work??? thanx in advance. Angelo

« previous php.general (#163472) next »