|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Getting the value from an textbox
Hey guys i have a question about how i can get the value from a textbox creted dynamic. Let say i create 5 textbox with the following names : x_1,x_2,x_3. How can i get the values in php.
Thank's |
|
#2
|
|||
|
|||
|
hi daniel,
I presume you have the <form></form> tags already set up? you need something like: <form action="getinfo.php"> <input type="text" name="x_1"> <input type="text" name="x_2"> </form> then you need to create the "getinfo.php" to actually gather the information.... something like: <?php echo "x_1 = " $x_1; echo "x_2 = " $x_2; ?> that's very basic, but it will output the values in the text boxes named x_1 and x_2. Hope this helps!! |
|
#3
|
|||
|
|||
|
Quote:
Or you may want to use: echo "x_1 = " . $_POST['x_1']; echo "x_2 = " . $_POST['x_2']; Depending on whether your <form> method is "POST" or "GET" you would use $_POST or $_GET. As fakker said, these are just basic methods...
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Getting the value from an textbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|