Allright so here's my problem and i've seen this happen before but don't know if it's an issue with eform or my coding syntax.
Also:
Modx Evolution 1.0.5
Php: 5.2.6
First of all, this is the error I get right at the top of my form:
Parse error: syntax error, unexpected $end in /var/www/vhosts/ixxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.ca/httpdocs/www/hybridbull/manager/includes/document.parser.class.inc.php(814) : eval()'d code on line 15
Upon submission of the form, this is another error I get.
Fatal error: Call to undefined function eForm2db() in /var/www/vhosts/interactive.woodruffsweitzer.ca/httpdocs/www/hybridbull/assets/snippets/eform/eform.inc.php on line 378
hybridbull_block
[!eForm2db!]
[!eForm? &formid=`register-form` &subject=`Hybrid Bull` &fromname=`Woodruff Sweitzer` &from=`[email protected]` &tpl=`hybridbull_form` &eFormOnBeforeMailSent=`eForm2db` &sendAsHtml=`1` &to=`[email protected]` &report=`hybridbull_report` &thankyou=`hybridbull_thankyou`!]
hybridbull_form
[+validationmessage+]
<form method="post" action="[~[*id*]~]" id="register-form" name="register-form">
<input type="hidden" name="formid" value="register-form">
<ul>
<li>
<label for="firstname">First Name</label>
<input type="text" name="firstname" id="firstname" maxlength="32" value="" eform="First Name:string:1:">
</li>
<li>
<label for="lastname" >Last Name</label>
<input type="text" name="lastname" id="lastname" maxlength="32" value="" eform="Last Name:string:1:">
</li>
<li>
<label for="email" >Email Address</label>
<input type="text" name="email" id="email" maxlength="32" value="" eform="Email Address:email:1:">
</li>
<li>
<label for="city" >City</label>
<input type="text" name="city" id="city" maxlength="32" value="" eform="City:string:1:">
</li>
<li>
<label for="postal" >Postal Code</label>
<input type="text" name="postal" id="postal" maxlength="32" value="" eform="Postal Code:string:1:">
</li>
<li>
<label for="country" >Country</label>
<input type="text" name="country" id="country" maxlength="32" value="" eform="Country:string:1:">
</li>
<li>
<input type="submit" value="Submit">
</li>
</ul>
</form>
I am also not sure if the name of the snippet call should be eForm2db or eFormToDB. I've tried both names and nothing. I don't think it should matter but you never know.
Everything in terms of syntax looks fine but can't see any issue. Any help would be greatly appreciated.