Created
May 24, 2018 21:04
-
-
Save Sohail05/b58d1eab000e50c2d2b54953951a0916 to your computer and use it in GitHub Desktop.
Textbox to PHP Array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="URL" method="POST"> | |
<input type="text" name="myvalue"/> | |
<input type="submit" value="Submit form"> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$myvalue = $_REQUEST['myvalue']; | |
$myArray = []; | |
$myArray[] = $myvalue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment