DIGIT-ARC read-only archive · snapshot: July 23, 2026

How do The text box Work.

11 posts · originally from https://geek.digit.in/community/threads/how-do-the-text-box-work.144319/

NitrousNavneet
NitrousNavneet Original post #1
Jul 27, 2011 at 9:18 PM
What is the html coding behind the textbox.
I mean,
When we write in text box to do post,
we need to press the button " Post Quick reply".
and the page reloads , and we sees our text on the page.
how that button work.

What is
<html>
<head>......
and blaaa blaaa
Behind it?
krishnandu.sarkar
Jul 27, 2011 at 10:00 PM
Well, in simple words, it does the same as Submit(actually it's a submit button), which has a PHP(in this case) code to add the content to database and a Ajax is there for which the portion of the page is refreshed and you are able to view the content at the very moment without refreshing the whole page.
Zangetsu
Jul 28, 2011 at 12:22 PM
@NitrousNavneet: this is html,php & ajax programming...
NitrousNavneet
Jul 28, 2011 at 4:00 PM
It is my coding

<html>
<head>
<title>
The Keshav Vidyapeeth Forum.
</title>
<BODY BGCOLOR="#333333" BACKGROUND="image.gif">

<font color = "blue" Size = 57 >

Welcome to KVP Forum
</Font>
<pre>






<textarea rows="10" cols="30"> </textarea>
<button>submit
</button>

</body>
</html>

I want my button (submit) work as 'post quick reply'.
Zangetsu
Jul 28, 2011 at 4:12 PM
^I dont know php...in which programing language u want to post the reply.
Saahib
Saahib #6
Jul 28, 2011 at 4:23 PM
Well, you are confused how a form fields are handled.

In simple words, when you press submit button, then all fields in that form are submitted in a kind of ARRAY to file / script which is supposed to process it .

Example:
<form name="input" action="html_form_action.php" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form>

Here on processing, form name "input" will have value in user="whatever given in box" . Now that script ie. html_form_action.php is supposed to take these values in array and do whatever it wants.. like saving it to database or may be finding something for that user.

To know more, learn language like ASP or PHP or JSP or Coldfusion etc...
NitrousNavneet
Jul 28, 2011 at 4:48 PM
I want my text box work as this -


*lh6.googleusercontent.com/-aUI9A85pxeI/TjFGCh5uuaI/AAAAAAAAANg/TutOGn98if8/s640/K.png

After Pressing the button

*lh6.googleusercontent.com/-bSPLiSGpPPE/TjFGCsFW7RI/AAAAAAAAANc/CRxXj_PfwoI/s640/Magical%252520Snap%252520-%2525202011.07.28%25252004.45%252520-%252520004.png
Zangetsu
Jul 28, 2011 at 5:48 PM
^u have to use php + ajax
Garbage
Garbage #9
Jul 28, 2011 at 5:53 PM
Okay. I think you are not getting what others are suggesting.. Let me put in some questions form.

1) Do you have PHP enabled server?
2) Do you know how to write PHP script?
3) Do you know HTML?

If no, then please go and read some HTML first, then start with PHP programming. Get a webserver hosting. In case you want to test it in local, you can use XAMPP.

I hope this helps.
NitrousNavneet
Jul 28, 2011 at 7:24 PM
Okay. I think you are not getting what others are suggesting.. Let me put in some questions form.

1) Do you have PHP enabled server?
2) Do you know how to write PHP script?
3) Do you know HTML?

If no, then please go and read some HTML first, then start with PHP programming. Get a webserver hosting. In case you want to test it in local, you can use XAMPP.

I hope this helps.

I only know about html.
krishnandu.sarkar
Jul 28, 2011 at 8:17 PM
You need to learn any of the server side language and Ajax. Not necessary PHP, but as I guess we love PHP more than others we are suggesting to learn PHP. :p