So long story short I am trying to edit the config file for a CGI that is written in PHP.
BUT I am unsure what I should put in for the variables, the email addresses were simple enough, but this part I am unsure about:
CODE
* Prefix to identify the REQUESTED FIELDS. You can change this prefix. To be a field required put this prefix beside the input name.
* ex. I want the field "email" to be mandatory. I call it "_rrr_email". <input type="text" name="_rrr_email">. This prefix will be automatically removed by the program, therefore think to the
* input name without the prefix configuring the rest of this file.
**/
$reqTag = "_rrr_";
/**
* Specify the name of a field in the form for sender's email address. Ex. if the form contains <input type=text name=emailaddress> you should set "emailaddress" the field below
**/
$emailField = "email";
/**
* Specify the name of a field in the form for sender's email body. Ex. if the form contains <input type=hidden name=tipomodulo value=new_proposals> you should set "new_proposte" as below.
* This value will be shown in the email body with the "body" ($oggetto) specified previously. If you want to see as body only this field, please delete $oggetto
**/
$subjectField = "";
/**
* Specify one or more fields to use as sender name.
* Ex. if in the form i use <input type=text name=name> and <input type=text name=surname> you should define "name" and "surname" as below.
* Please use a , between each setting and remeber to use " "
**/
$senderNames = "Firstname, Lastname";
/**
* If this option is set to 1, the confirmation page will show all the data inserted. If set to 0 it will print only the confirmation message without the data
**/
$mostraInputinConferma = 1;
* ex. I want the field "email" to be mandatory. I call it "_rrr_email". <input type="text" name="_rrr_email">. This prefix will be automatically removed by the program, therefore think to the
* input name without the prefix configuring the rest of this file.
**/
$reqTag = "_rrr_";
/**
* Specify the name of a field in the form for sender's email address. Ex. if the form contains <input type=text name=emailaddress> you should set "emailaddress" the field below
**/
$emailField = "email";
/**
* Specify the name of a field in the form for sender's email body. Ex. if the form contains <input type=hidden name=tipomodulo value=new_proposals> you should set "new_proposte" as below.
* This value will be shown in the email body with the "body" ($oggetto) specified previously. If you want to see as body only this field, please delete $oggetto
**/
$subjectField = "";
/**
* Specify one or more fields to use as sender name.
* Ex. if in the form i use <input type=text name=name> and <input type=text name=surname> you should define "name" and "surname" as below.
* Please use a , between each setting and remeber to use " "
**/
$senderNames = "Firstname, Lastname";
/**
* If this option is set to 1, the confirmation page will show all the data inserted. If set to 0 it will print only the confirmation message without the data
**/
$mostraInputinConferma = 1;
The HTML file has 2 small text fields and a submit button, that are supposed to email the entered information within the text fields to a series of emails addresses with a specific text.
CODE
<tr>
<td>
<font color="Yellow"><strong>Text Field 0</strong></font>
</td>
<td valign="top">
<input type="text" name="Text Field 0" id="Text Field 0" size="10" value="" />
</td>
</tr>
<tr>
<td valign="top">
<font color="White"><strong>Text Field 1</strong></font>
</td>
<td valign="top">
<input type="text" name="Text Field 1" id="Text Field 1" size="10" value="" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value=" Submit Form " />
</td>
</tr>
<td>
<font color="Yellow"><strong>Text Field 0</strong></font>
</td>
<td valign="top">
<input type="text" name="Text Field 0" id="Text Field 0" size="10" value="" />
</td>
</tr>
<tr>
<td valign="top">
<font color="White"><strong>Text Field 1</strong></font>
</td>
<td valign="top">
<input type="text" name="Text Field 1" id="Text Field 1" size="10" value="" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value=" Submit Form " />
</td>
</tr>
So something like:
CODE
From: from@****.com
To: to@****.com
Subject: test0
This is text
Text field 0: 01234
Text Field 1: 56789
To: to@****.com
Subject: test0
This is text
Text field 0: 01234
Text Field 1: 56789