Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Store input from a text field in a PHP variable [closed]

Tags:

html

php

Store the users input from a text field in a variable. Any ways to do this?

like image 721
Mike Avatar asked Sep 17 '25 04:09

Mike


1 Answers

HTML:

<input type="text" name="firstname" />

PHP-onsubmit (untested)

<?php
   $firstname = $_POST["firstname"];
?>
like image 159
dotariel Avatar answered Sep 19 '25 18:09

dotariel