•
•
•
•
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
![]() |
•
•
Join Date: Oct 2006
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
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]
[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]
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation:
Rep Power: 5
Solved Threads: 47
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: for a non breakingspace and   for a normal space.... or   for a thin space...
I usually use ... eg:
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: for a non breakingspace and   for a normal space.... or   for a thin space...
I usually use ... eg:
This text will have big spaces
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Question regarding Title (ColdFusion)
- HTML question about creating a certificate form? (HTML and CSS)
- HTML question (JavaScript / DHTML / AJAX)
- html question (PHP)
- A php question (PHP)
Other Threads in the HTML and CSS Forum
- Previous Thread: Inline Pseudoclasses
- Next Thread: Okay help a complete novice or direct me somewhere else


Linear Mode