php post form to self
snippet in php

php server self

user7087

<form action="<?php echo $_SERVER['PHP_SELF']; ?>"> 
//there is no reason to use this to submit form data to the same page
<form action=""> 
//will do the same thing

php post form to self

user7980

// Here is how to post form data to self or to the same page & 
// avoid the PHP_SELF exploits at the same time.
<form name="my_form" method="post"
  action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>"> 
</form>

php self

user1730

<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >