The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Post not displaying information Re: Contact Post not displaying information


> On a side note, I’m not sure how to highlight code elements in yellow like you do..

`this` → `this`

it’s [markdown](, baby!

> in dreamweaver it didn’t show me what the error was, just highlighted that section..

ugh… no offense. You need a code editor for writing code, which Dreamweaver is not. (You might look at something like [komodo]( Try it on a real server, and make sure error reporting is enabled –

error_reporting( -1 );
ini_set( ‘display_errors’,1 );

# rest of code here

> If I am not receiving the print after submitting the post, is that an indicator something before that in the code isn’t executing correctly?

Right – that would indicate that code execution does not reach the point where it tries to send the mail. If it did, then you’d get either the “Thanks” or “Problem” message. Two possibilities:

… you’re not entering the initial `if( !empty( $_POST ) )` block

… you’re encountering a fatal error before the call to `mail()` is complete

If it’s the latter, then setting error reporting should tell us so. During development, it’s always a good idea to make sure you see **every last error**. During production, it’s a good idea to hide them (from the public; *you* should still keep an eye on your error logs).