I cannot find what i messed up. Parse error: syntax error, unexpected T_CONSTANT_ENCA
I got this:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/b3global/public_html/consumer-industry/forums/newthread.php(71) : eval()'d code on line 687
I have two seperate forms both use newthread.php . I was working in the "form" templete which both newthread.php's pull from and after i hit "save" neither newthread.php's work. So i have narrowed it down to this "form" code.
<tr>
<td class="alt2" colspan="4">
$radioquestion7<br>
<br>
<b>Would you like to participate?</b>
     
<input type="radio" name="radioanswer7" value="$radiochoice7a" <if condition="$radiochoice7a == $radioanswer7">checked="checked"</if> /> $radiochoice7a    
<input type="radio" name="radioanswer7" value="$radiochoice7b" <if condition="$radiochoice7b == $radioanswer7">checked="checked"</if> /> $radiochoice7b    
<br><i>If $radiochoice7a, How would you like your name to appear in the record?</i> <input type="text" size="40" value="$radioanswer7other" name="radioanswer7other" /></td>
</tr>
<tr>
<td class="alt1" valign="middle" colspan="1">
<b>Username</b>:<br />
Your Consumer-Industry Forum Username</td>
<td class="alt1" valign="middle" colspan="4">
<b>$bbuserinfo[username]</b></td>
</tr>
and the newthread.php code just incase. (almost positive wasn't working in, or made any changes to this)
PHP Code:
// To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'.
// After, change the form name. You can't have 2 forms with the same name.
////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//VARIABLES
//Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two.
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//To enable this feature, remove the '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "1";
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "119";
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
//Make poll public - 1 = yes, 0 = no
$pollpublic = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS:
// 0 - thank you message (thread, reply, pm, or email)
// 1 - redirect to post (thread or reply)
// 2 - redirect to thread (thread only)
// 3 - redirect to forum (thread only)
// 4 - redirect to editpost (thread or reply)
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////
$redirectoption = "0";
$errormessage = "Thank you for submitting this form! Someone will contact you within 1 business hour at the email address you provided to follow up."; //This is the thank you message
////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
//If you added or deleted variables, you must edit what it checked for. Search for "$answerall ==" and edit 2 lines under it.
////////////////////////////////////////////////////////////////////////////////////////////////////
$answerall = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole title)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formtitle = "Residential Auction Application";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = "Residential Auction Application";
////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formpurpose = "Please Fill in all the information completely to place an auction request. Someone will contact you within 1 business hour after submitting the request to confirm your information and answer any questions you might have.";
$radioquestion7 = "<b>Would you like have your name listed on a Guiness World Record while doing a great thing to help the environment?</b><br><br> TheUtilityAuction.com is going for the world record of <i>Largest Organized Energy Conservation Effort</i>. Our goal is to help each person who participates replace 20% of their residences regular light bulbs with ENERGY STAR qualified compact fluorescent replacements which use 75% less energy. <br>To participate you must complete an auction and procure an energy contract using TheUtilityAuction.com. At the end of the record campaign each residence that participated will recieve 4(four) ENERGY STAR quailifed compact fluorescent replacement bulbs absolutely free. Plus your your name will be included in the record submission.";
$radiochoice7a = "Yes";
$radiochoice7b = "No";
$radioquestion4 = "*Service Type:";
$radiochoice4a = "Move-In / New Address";
$radiochoice4b = "Provider Change / Same Address";
$question8 = "*Physical Service Address";
$question9 = "*Physical Service City";
$question10 = "*Physical Service State:";
$question11 = "*Physical Service Zip Code";
$radioquestion5 = "*Billing Address Same as Physical Service Address:";
$radiochoice5a = "Yes";
$radiochoice5b = "No";
$question12 = "*Billing Contact Person Name";
$explain12 = "You only need to fill in billing address if it is different than the physical service address.";
$question13 = "Billing Address";
$explain13 = "You only need to fill in billing address if it is different than the physical service address.";
$question14 = "*Billing City";
$explain14 = "You only need to fill in billing address if it is different than the physical service address.";
$question15 = "*Billing State";
$explain15 = "You only need to fill in billing address if it is different than the physical service address.";
$question16 = "*Billing Zip Code";
$explain16 = "You only need to fill in billing address if it is different than the physical service address.";
$question17 = "Current rate per kWh";
$explain17 = "Current price you pay for electricity per kilowatt hour. In $0.124 format.";
$question18 = "*ESI ID #";
$explain18 = "This is number can be found on your current bill statement and is your electricity meters identification number.";
$radioquestion8 = "Are you still under a contract?";
$radiochoice8a = "yes";
$radiochoice8b = "no";
$longquestion1 = "Space for special notes or requests.";
////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
if ($_REQUEST['action'] == '')
{
$_REQUEST['action'] = "form";
}
if ($answerall == "1")
{
if ($normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR ($checkboxchoice1_1 AND $checkboxchoice1_2 AND $checkboxchoice1_3) OR $longanswer1 == '')
{
$errormessage = "$bbuserinfo[username], you need to answer every question!";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
}
I am an entry programmer, we'll actually an entreprenuer who is "shoestinging" a project to get some proof it works. Once i can prove it works, i can get money for a real programmer.
Sir, Thanks again. You do not know how much you saved the day.