sbillard, you are right I am using a custom theme. I have the contact form placed on my image.php. People click the email button and the contact form becomes visible. It works great with the exception that every time the page needs to refresh (ie for validation, confirmation, etc.) the div hides itself again. Aside from that it is working like it is suppose to, you just need to keep clicking the contact button to complete each step of the form process.
So far, based off of acrylian's suggestion I've come up with this:
`
function postback() {
if(isset($_POST['sendmail'])) {
document.getElementById('inquiry').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.inquiry.visibility = 'visible';
}
else { // IE 4
document.all.inquiry.style.visibility = 'visible';
}
}
}
`
But, so far I haven't had any luck. Is PHP not capable of telling a div to become visible if it is returning data from a form? Am I close to solving it with what I've written?