HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Display data from a textbox at some other place
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
sghulyani



Joined: 03 Apr 2008
Posts: 4
Location: India

PostPosted: Wed Apr 16, 2008 3:04 am     Display data from a textbox at some other place Reply with quote

Hi.

I want to display the data entered by a user in a textbox, in some other page. Is it possible by using only HTML? If yes, then how can it be done???

Also, how can I display data in a combobox fetching it from a database (that too only using html).
Please help me out...

Thanks in advance...
gary.newelluk



Joined: 12 May 2005
Posts: 548
Location: Peterhead, Scotland

PostPosted: Mon Apr 21, 2008 1:29 pm     Reply with quote

Hi,

I'm afraid HTML cannot be used for the purposes you have described.

HTML is a markup language used for formatting.

To understand this you need to learn the principals of client/server.

There are different types of servers such as file servers, web servers and database servers. These servers can often feature on the same physical box or can be spread across multiple boxes.

Obviously the type of server that provides web pages is a web server.

When you connect to a web server to get a page your web browser is the client software running on the client machine.

The browser calls the web server which returns a copy of the HTML page back to your browser which formats to look the way it does.

As you only ever receive a copy of the HTML and not the physical page it is impossible for HTML to copy the value of a textbox to another page and it is equally impossible for HTML to access a database as your browser isn't capable of handling data. The web server always handles the data and formats it into HTML and sends it back to you.

To be able to access databases you will need to use a server side scripting language such as ASP, PHP or PERL
sghulyani



Joined: 03 Apr 2008
Posts: 4
Location: India

PostPosted: Mon Apr 21, 2008 9:01 pm     Reply with quote

hey, thanks dude.
Straystudio



Joined: 14 Apr 2008
Posts: 228
Location: Nord Italy

PostPosted: Tue Apr 22, 2008 2:17 pm     Reply with quote

gary is right; it is basically matter of having server set-up.

But wait!
What would You really transfer?

If it is just something like a name/surname, a message and alike
AND does NOT need to be processed by the system;
if it is text to go just shared on different/multiple pages, entered in one only though,
yes I could do the trick.

They do exist sites which supply/handle tag-board messanger-service; and some are free, too.
Once You have signed-up there, they display an html code to you (to be copied/pasted): it is based on <IFRAME>.
Two iframe, indeed: one is for sending message (transmitter), the second displays the sent messages.

You can keep both frames tied, or split them either: the 'transmitter' on a page, the 'receiver' on how many pages You want; and vice-versa.

I have one at hand from a friend's site I am working on.
Process this code; YOU HAVE TO BE ON-LINE, AS WE WILL GO THROUGH THEIR SERVER; AS gary.newelluk MENTIONED.

Code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>sghulyani</title>
</head>
<body bgcolor="#444242" text="#ffffff">

  <table height="90%" width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
   <td height="100%" align="center" valign="middle">

   <iframe frameborder="0" width="50%" height="60%" src="http://www2.cbox.ws/box/?boxid=1697970&boxtag=2ws7m1&sec=main" marginheight="2" marginwidth="2"
   scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#EAB412 1px solid;">
   </iframe>
   
   </td>
   </tr><tr>
   <td align="center">
   
   <iframe frameborder="0" width="50%" height="75" src="http://www2.cbox.ws/box/?boxid=1697970&boxtag=2ws7m1&sec=form" marginheight="2" marginwidth="2"
   scrolling="no" allowtransparency="yes" name="cboxform" style="border:#EAB412 1px solid;border-top:0px">
   </iframe>
   
   </td>
   </tr>
  </table>

</body>
</html>



Let me know ...
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial