I just need a simple contact form that a user can fill out, and the results are emailed to the admin. I could easily use the user defined forms cause it's good enough, except I'd really like the from address to be the user's email, not what's defined in the config file. That way when the email comes in, the admin can read the email and just click reply in their email program to respond to it.
I'd assume I have to code my own, but being a designer first, I'd love as much info on this as possible. Example code would be great.
I still haven't been able to figure out why my form won't submit.
Also, how do I define a custom template for this form? I tried using the function forTemplate() in the class, but even after a /flush=1 I still get the standard form. I included the new template in the /templates/includes directory.
Okay I got the new template up and running perfectly with the new code you showed.
The form still doesn't submit though. I tried putting in the die() function at the end of the doform function, but it didn't show up. I then tried putting it at the start of the doform() function, and still nothing.
Here is the code I have in my ContactPage.php http://pastie.org/244292
It seems like a small error somewhere, but nothing stands out to me.