How do The text box Work.

NitrousNavneet

Racing 24X7
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

Simply a DIGITian
Staff member
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.
 
OP
NitrousNavneet

NitrousNavneet

Racing 24X7
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'.
 

Saahib

Cyborg Agent
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...
 
OP
NitrousNavneet

NitrousNavneet

Racing 24X7
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
 

Garbage

God of Mistakes...
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.
 
OP
NitrousNavneet

NitrousNavneet

Racing 24X7
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

Simply a DIGITian
Staff member
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
 
Top Bottom