---
title: "problem in taken input"  
description: "problem in taken input"  
author: "sourabh kumar"  
published: 2011-03-01  
updated: 2011-03-01  
canonical: https://www.mindstick.com/forum/180/problem-in-taken-input  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# problem in taken input

i am new [php](https://www.mindstick.com/articles/12149/php-constant-and-php-variables) \
so my [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic), how taken the [input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java) [value from textbox](https://www.mindstick.com/forum/12791/returning-a-value-from-textbox-in-a-class)\
give the example of its.\

## Replies

### Reply by Amit Singh

hi,\
using $_post or $_get method to get the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) from [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview)\
**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\
\
\


---

Original Source: https://www.mindstick.com/forum/180/problem-in-taken-input

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
