ModX website has a working contact form with the following structure:
<form id="hi" action="#">
<input type="hidden" name="action" value="hisend">
... just some plain input fields ...
<input type="submit" value="Send" name="send">
</div>
</form>
When user submits the form, the following jQuery code handles it:
$("#hi").submit(function(e){
e.preventDefault();
var r = new Date().getTime();
$.post('/ajax.html?ts'+r, $("#hi").serialize(), function(data){
if(data == 'OK'){
// ... just some simple thank you message ...
}
});
return false;
});
QUESTION: I need to change an address to which this form sends emails, but can't figure where it is/how this form works?
Logically, I'd look into ajax.html
for further clues, but I can't see the file, neither from ModX manager, neither from web host provided File Manager (I don't have FTP access.)
The file seems to be there though, and gives response 200 when accessed directly from the browser, but no output.
Any hint much appreciated.
It looks like the file might be index-ajax.php. I suspect there might be a .htaccess redirect for ajax.html to index-ajax.php