As a complete PHP novice I've been wrestling with this for days now
I'm building a recruitment website using MODx Evolution 1.0.4 and eForm 1.4.4.6. I have successfully created a form that allows job applicants to send email attachments and it works fine.
Now I'm trying to auto populate the page heading and a couple of form fields with the Job Title and a Ref. I got this working using a bit of PHP code to pass a querystring parameter from the job page to the form page. This is the code I use to create the page heading for instance:
<?php
echo "<h1>Apply For";?>
<?php echo $_GET["name"]; ?>
<?php echo "</h1>";?>
As chunks cannot process PHP, I added all the form HTML along with the above PHP into a snippet and called that snippet using the chunk that is referenced in the usual eForm snippet call.
The form still displays correctly and it popualtes the heading and form fields as I wanted but now when I hit the submit button to send the email, I get an error message and the email does not get sent.
I appreciate I might need to provide a bit more info/code for anybody to help here but I'm not sure which bit of code is/could be the problem. If anybody could give me just a nugget of advice I'd be really grateful.