![]() ![]() |
Aug 2 2007, 09:47 AM
Post
#1
|
|
|
Enlightened ![]() Group: The Planet Staff Posts: 89 Joined: 26-October 06 From: Houston (HDC1) Member No.: 24,495 |
Hello,
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; 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> So something like: CODE From: from@****.com
To: to@****.com Subject: test0 This is text Text field 0: 01234 Text Field 1: 56789 |
|
|
|
Aug 3 2007, 09:08 PM
Post
#2
|
|
![]() Computer Chip ![]() ![]() ![]() Group: Members Posts: 768 Joined: 16-November 02 Member No.: 4,896 |
QUOTE * 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_"; Ok this setting would be used if you want any of the fields to be mandatory such as the email address of the sender or the text feild like so $reqTag = "_rrr_Text Field 0"; $reqTag = "_rrr_Text Field 1"; QUOTE /** * 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"; This would be the senders email address which would fill in the from adress. Which could also be a required field like so. $emailField = "_rrr_email"; QUOTE /** * 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 = ""; This of course is the subject field in the email which can be what ever you wish such as data form subjectField = "Data Form"; QUOTE /** * 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"; This of course would be used only if you wanted to collect the names on the form. QUOTE /** * 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; You would only need to set this to 1 if you want the sucess page to print out all the information that was entered on the form, if you would just like a sucess page to show up then just set this to 0. Now the one thing that was not covered were the Text Fields that you are trying to collect I guess seeing how that question was not asked you have already figured that part out. Hope this helps ......... -------------------- Total Web International Net Consulting
HillBilly Politics. If all else fails !! [ctrl]+[alt]+[system restore] !! |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
| Lo-Fi Version | Time is now: 2nd September 2010 - 09:45 AM |





Aug 2 2007, 09:47 AM




