I am trying to write a program that will recieve a non-determined number of fields from an HTML form and return their values back to the browser in an interesting way. I am stuck on some of my code because I want to create 1)spaces between the questions 2) add a box where the user can type in an answer. Here is code I have so far:
#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>";