Answers for "self submit form php"

PHP
6

php server self

<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
Posted by: Guest on February-11-2020
1

php post form to self

// 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>
Posted by: Guest on June-23-2020
0

self submit form php

action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language