User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,002 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,438 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 706 | Replies: 1
Reply
Join Date: Oct 2006
Posts: 19
Reputation: newbie2c++ is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
newbie2c++ newbie2c++ is offline Offline
Newbie Poster

Help HTML question

  #1  
Dec 14th, 2006
Hi just curious if there is a way to create a box that can be typed in to enter information so that I can take the output and use it in an anser page? Also is there a special HTML code to create spaces between lines of text? Thanks for help in advance and this is the c++ code I have so far w/ the HTML text

[HTML]#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{

cout << "Content-type:text/html\n\n <br>";
cout << "<html> <br>" << endl;
cout << "<head> <br>" << endl;
cout << "<body> <br>" << endl;
cout << "<body bgcolor=\"red\"> <br>" << endl;
cout << "<font color=\"white\"> <br>" << endl;
cout << "<center><b><font size=\"+4\"><blink>My Christmas Wish List</blink></font></b></center>\n <br>";
cout << "\n<font size=\"+2\">The one thing I want most for Christmas is:</font> \n <br>";
cout << "\n<font size=\"+2\">The reason I think I deserve to get this is:</font> \n <br>";
cout << "<font size=\"+2\">1: I have been a very good boy/girl all year.</font> \n <br>";
cout << "<font size=\"+2\">2: I have been a very good boy/girl most of the year.</font> \n <br>";
cout << "<font size=\"+2\">3: I have been a very good boy/girl for the month of December.</font> \n <br>";
cout << "<font size=\"+2\">4: I was a very good boy/girl yesterday.</font> \n <br>";
cout << "<font size=\"+2\">If I was on a good boy/girl list my name would be shown as:</font> \n <br>";[/HTML]
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: HTML question

  #2  
Dec 15th, 2006
you'll want to use a form, and some inputs:

http://www.w3.org/TR/html4/interact/forms.html
http://www.cs.tut.fi/~jkorpela/forms/cgic.html

as for a space in text, i'm guessing you don't mean a line break because you're using them (<br/>)... If you put alot of spaces, HTML converts them into one space, so use an entity: &nbsp; for a non breakingspace and &emsp; for a normal space.... or &thinsp; for a thin space...

I usually use &nbsp;... eg:

This&nbsp;&nbsp;&nbsp;&nbsp;text&nbsp;&nbsp;&nbsp;will&nbsp;&nbsp;&nbsp;have&nbsp;&nbsp;&nbsp;big&nbsp;&nbsp;&nbsp;spaces
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC