 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
sghulyani

Joined: 03 Apr 2008 Posts: 4 Location: India
|
Posted: Wed Apr 16, 2008 3:04 am Display data from a textbox at some other place |
|
|
|
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
|
Posted: Mon Apr 21, 2008 1:29 pm |
|
|
|
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
|
Posted: Mon Apr 21, 2008 9:01 pm |
|
|
|
| hey, thanks dude. |
|
Straystudio
Joined: 14 Apr 2008 Posts: 192 Location: Nord Italy
|
Posted: Tue Apr 22, 2008 2:17 pm |
|
|
|
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 ... |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|