Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to get data from html form in php

// Page containing a form:
<form action="myaction.php" method="post">
 <p>Your name : <input type="text" name="name" /></p>
 <input type="submit" value="Submit">
</form>

// myaction.php
Hello <?php echo htmlspecialchars($_POST['name']); ?>
Comment

PREVIOUS NEXT
Code Example
Php :: date and time in php 
Php :: count words in string php 
Php :: laravel redirect back url with message 
Php :: phpspreadsheet middle align 
Php :: php jquery plus 1 day 
Php :: get words after string in in php 
Php :: laravel redirect back with errors and input 
Php :: sum of columns laravel eloquent 
Php :: how to change existing migration laravel 
Php :: laravel require vendor autoload 
Php :: php weekdays 
Php :: routing code in drupal 8 
Php :: php replace blackslash 
Php :: laravel model created_at format edit 
Php :: php check if input is int 
Php :: random digit with seed php 
Php :: the posts pagination 
Php :: get the full url in php 
Php :: shortcut vsc select line up 
Php :: save an image use php 
Php :: php sort array by value length 
Php :: file put contents append 
Php :: get country from ip address 
Php :: laravel get items by ids 
Php :: php foreach random 
Php :: utf8 php 
Php :: show data from a table in laravel 8 
Php :: codeigniter 3 or where not in 
Php :: php back to original site 
Php :: compare two arrays and return the difference php 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =