c++ —-using web form html i created this i need help with thiscode. i am having problems with the if else statements..
this is the web form html
p>The switch statement will execute a block of code based onyour input.</p>
<form action=”retrieve_form_start.cgi” method=”GET””target=”_blank”>
First Name:<br>
<input type=”text” name=”first”><p>
Last Name<br>
<input type=”text” name=”last”><p>
Favorite Witch<br>
<input type=”radio” name=”Witch” value=”Harry Potter”>Harry Potter<br>
<input type=”radio” name=”Witch” value=”Hermione Granger”>Hermione Granger<br>
<input type=”radio” name=”Witch” value=”Ron Weasley”> RonWeasley
<p><input type=”submit” value=”witch?”>
</form>
</body>
</html>
<code>
#include <iomanip>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <string>
using namespace std;
struct FIELDS
{
string name;
string value;
};
const int cnt = 3; //cnt should be set to the number of fields thehtml form contains
// Prototypes
void parse(string, FIELDS []);
string param(string, FIELDS [], int);
//main begins
int main()
{
FIELDS
PayPal Gateway not configured
PayPal Gateway not configured