Page 1 of 1

PHP Send Mail redirect in particular div, need help...

Posted: Sun Aug 19, 2007 2:38 pm
by WithHisStripes
Heya,
I am working on my website http://www.firetree.us and I have a link on the left that opens a form into the content div in the center of the page. The form then submits to a PHP send mail page but it opens it into an entirely new page rather than containing it within the div. Obviously this is expected but I'm not sure if there's any real solution for it considering the structure of the site with javascript. Can anyone help?
Thanks!

Posted: Sun Aug 19, 2007 9:06 pm
by RhapX
Can you be more specific, it seems to be working fine?

Posted: Mon Aug 20, 2007 10:11 am
by WithHisStripes
Sure... thanks for your reply... In Safari and FF on Mac you submit the form, it redirects to an entirely blank page and then back to the home page. I'd like, when you click send, for the page to stay the same and the data in the div to update instead.

Does that make better sense? Thanks again!

Posted: Mon Aug 20, 2007 2:26 pm
by superdezign
PHP doesn't just 'update a div,' it send a whole new page request. You can simulate it by keeping the same content on the otside of that particular div, but PHP won't change just that. AJAX may be of some use.

Posted: Mon Aug 20, 2007 2:39 pm
by WithHisStripes
Cool. Thanks guys.