Forums

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

Home Forums Other How to make Chris’s contact form ajax? Re: How to make Chris’s contact form ajax?

#127849
CrocoDillon
Participant

Sure you can, the php file I have is really simple (for demo only) but you can do everything with the POST data you want.

echo ‘Hello there, ‘.htmlspecialchars($_POST).’!’;
else
echo ‘Hello there, Mr. Smith!’;

Don’t mind me sending html back though, XML or JSON would probably be better (if you want to give feedback on validation errors).