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!
Format input text box
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
psridhar



Joined: 29 Aug 2005
Posts: 5

PostPosted: Thu Sep 01, 2005 3:29 am     Format input text box Reply with quote

Hi

I have the following code which I paste in notepad and save as test.doc.

<html>
<p style="font-family:Verdana, sans-serif;font-size:smaller;">
My name is Mr. <input type="text" value="myName">
and my age is <input type="text" value="myAge">
. My gender is <input type="text" value="myGender">
</p>
</html

When I open this word file, I am getting three input text boxes and they contain values as "myName", "myAge" and "myGender".

Can anyboby help me in formating this input text boxes. I want to apply font color, alignment, back ground color, etc... to this boxes.

For the following two reasons, I want to save it as .doc.

1. I should be able to modify the data inside the text boxes and that data should be stored. Is it possible if I open it as .html?

2. I want to get the entire data in to a text file for my further processing. Let me explain some thing more here. I basically work in mainframe technology. I want to provide an user interface ( as the above example) by fetching the data from database.
For that, I write a program in mainframes, which reads the data from database and formulates html code. I transfer this code from mainframes to windows. Now user should be able to edit the data in the text boxes and that data needs to be saved and updated back in my mainframe database. Mainframe can receive only *.txt files in readable format. So I need to convert my windows file ( doc or html or what ever it may me ) text file so that I can send the updated data back to mainframe. Now I will write another program in mainframe which reads this updated data and updates my database.

Hope I am clear.....

Please come up with a solution....

Thanks
Sridhar P
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Thu Sep 01, 2005 4:12 am     Reply with quote



You are not apply CSS to the input:
Code:
input
{
   background-color: #ececec;
   font-family: arial;
   font-size: 10pt;
   color: #000000;
   border-style:groove;
   
}

is something that you can use. Tweak it as necessary
psridhar



Joined: 29 Aug 2005
Posts: 5

PostPosted: Thu Sep 01, 2005 7:49 pm     Reply with quote

Hi

I have tried the below code but it did not work when I open it as test.doc. It works fine if I open as test.html

But my requirement is as follows... The user should be able to edit the data insite the text boxes and that should be saved. When he opens the file for the next time, he should get the updated value.

Is there any way I can achieve it....

Regards
Sridhar P


<html>
<p style="font-family:Verdana, sans-serif;font-size:smaller;">
My name is Mr. <input type="text" value="myName" style="color:red;text-align:center;background:blue;width:300px">
and my age is <input type="text" value="myAge" style="color:red;text-align:center;background:blue;">
My gender is <input type="text" value="myGender" style="color:red;text-align:center;background:blue;">
</p>
</html>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Thu Sep 01, 2005 7:54 pm     Reply with quote

Are you creating an HTML document or a Word document?
psridhar



Joined: 29 Aug 2005
Posts: 5

PostPosted: Fri Sep 02, 2005 12:55 am     Reply with quote

Hi Corey Bryant,

My requirement is as follows....

1. I should be able to modify the data inside the text boxes and that data should be stored. Is it possible if I open it as .html?

2. I want to get the entire data in to a text file for my further processing. Let me explain some thing more here. I basically work in mainframe technology. I want to provide an user interface ( as the above example) by fetching the data from database.

For that, I write a program in mainframes, which reads the data from database and formulates html code. I transfer this code from mainframes to windows. Now user should be able to edit the data in the text boxes and that data needs to be saved and updated back in my mainframe database. Mainframe can receive only *.txt files in readable format. So I need to convert my windows file ( doc or html or what ever it may me ) text file so that I can send the updated data back to mainframe. Now I will write another program in mainframe which reads this updated data and updates my database.

Hope I am clear.....

Please come up with a solution....

Thanks
Sridhar P
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Fri Sep 02, 2005 4:07 am     Reply with quote

Retreiving data from a database cannot be be done via HTML. I am not exactly sure what you are trying to accomplish, but you can get a free account at Experts Exchange - this site should be able to help you
psridhar



Joined: 29 Aug 2005
Posts: 5

PostPosted: Fri Sep 02, 2005 4:17 am     Reply with quote

I think I confused you with my requirement....

Forget about database and all.....

I need an user interface ( HTML or WORD or what ever...) in which I will show some data in input text boxes. Now user should be able to edit that data and the new data should be stored. When user re opens that file, he should be able to see the updated data...

Hope I am clear now...
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Fri Sep 02, 2005 4:34 am     Reply with quote

You would need to use a server side langauge to write to the database and read from the database, HTML cannot do it.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS 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
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

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