# Get value from form text box

**URL:** <https://forum.kirupa.com/t/get-value-from-form-text-box/244454>\
**Category:** programming\
**Created:** [November 18, 2007, 1:11pm UTC](https://forum.kirupa.com/t/get-value-from-form-text-box/244454 "2007-11-18T13:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_sniper](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@code\_sniper](https://forum.kirupa.com/u/code_sniper)\
**Post date:** [November 18, 2007, 1:11pm UTC](https://forum.kirupa.com/t/get-value-from-form-text-box/244454/1 "2007-11-18T13:11:54Z")

</div>

I have the following line of code on my page.

\<input type=“text” size=“1” name=“CartQty”\>

Its not inside form tag.  
On clicking a link, i want to get the value of “CartQty” and pass it as query string. I dont want to use a button for that reason.  
How can i get the value of “CartQty”?? Is it possible to do so???
