Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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>
Comment

form post self php

<?php if (!empty($_POST)): ?>
    Welcome, <?php echo htmlspecialchars($_POST["name"]); ?>!<br>
    Your email is <?php echo htmlspecialchars($_POST["email"]); ?>.<br>
<?php else: ?>
    <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
        Name: <input type="text" name="name"><br>
        Email: <input type="text" name="email"><br>
        <input type="submit">
    </form>
<?php endif; ?>
Comment

self submit form php

action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"
Comment

PREVIOUS NEXT
Code Example
Php :: how to make validate error when password doesnt match with password confirm laravel 
Php :: php read file line by line 
Php :: zsh: command not found: laravel 
Php :: php if no imagee exists 
Php :: get current datatime laravel 
Php :: get all values inside session laravel 
Php :: your requirements could not be resolved to an installable set of packages. composer 
Php :: json from php 
Php :: request type PHP $SERVER 
Php :: php call parent constructor 
Php :: php string to int 
Php :: base64 encode laravel 
Php :: curl follow redirect php 
Php :: php xml to array 
Php :: php iterate folder 
Php :: disable admin bar wordpress 
Php :: +1 month php 
Php :: php delay 
Php :: php split string at first space 
Php :: this load session codeigniter 
Php :: compare hashed password and a text password in laravel 
Php :: formate date using carbon in laravel blade 
Php :: laravel migrate specific path 
Php :: styling not working in laravel breeze 
Php :: laravel 8 delete by id 
Php :: lravel redirect with error 
Php :: php mysql date format 
Php :: wordpress user enumeration 
Php :: laravel validate integer between 
Php :: change php max upload size 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =