Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Comments on Backendly redirecting a user from a contact form webpage to a success webpage
Post
Backendly redirecting a user from a contact form webpage to a success webpage
On a CentOS Apache-MySQL-PHP environment I have a website with a simple HTML-PHP-CSS contact form; the contact form itself is working.
This is how I backendly redirect a user from the contact form webpage to a success message webpage after a successful submission, based on the built-in W3C-developed-behavior of the form's HTML structures:
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
header('Location: URL_COMES_HERE');
exit;
}
Would you suggest to improve this code somehow? Maybe I lacked some validations.
1 comment thread