Currently, I have this line:
$.post("submitmail.php", $("#contactform").serialize(), recvMailStatus);
I'm new to jQuery so this may be an absurdly stupid question.
But I'm making this project work with or without javascript, so if a form is submitted with this function, I want submitmail.php to just echo whether or not it was successful. If the form just submits and redirects to submitmail.php, I want it to display something other than a white screen with black text saying "mail sent successfully." To do this I figured I would just post
an extra variable "fromjs" or something so that the page can render itself accordingly. What's the best way to do that?