Home > DeveloperSection > Forums > problem in taken input
sourabh kumar
sourabh kumar

Total Post:6

Points:42
Posted on    March-01-2011 3:13 AM

 PHP PHP 
Ratings:


 1 Reply(s)
 1357  View(s)
Rate this:
i am new php
so my problem, how taken the input value from textbox
give the example of its.


Amit Singh

Total Post:103

Points:721
Posted on    March-01-2011 3:52 AM

hi,
using $_post or $_get method to get the value from textbox
 for example
1) when we use the post method

<form method="post">
<input type="text" name="txtName"/>
---
</form>
<? php
$strName=$_post['txtName'];
?>

2) when we use the get method

<form method="get">
<input type="text" name="txtName"/>
---
</form>
<? php
$strName=$_get['txtName'];
?>


check this code



Modified On Mar-01-2011 03:53:25 AM

Don't want to miss updates? Please click the below button!

Follow MindStick