Good day!
The order.php file (I attach the code below) sucks in the data from the html and sends it to the mail (name, phone, address, etc.). Further, after sending the data to the mail, the script transfers the person to another html page.
Tell me how to make it so that it does not transfer to the page "/success_order1.html" , but to the page "/success_order1.html?+'.@$_POST['name '].'" And a page with the URL of the type: "/ success_order1.html? Igor " ?
<?php header("Content-Type: text/html; charset=utf-8"); if($_SERVER["REQUEST_METHOD"] == "GET") exit; $email = "xxxxxx@bk.ru"; $title = "Новый заказ. xxxxxxxx"; $from = 'xxxxxxxxx'; $text = 'Информация о заказе: Товар: xxxxxxxxxxxxxxxxxxxxxxx (http://xxxxxxxx/mob1/) Имя: '.@$_POST['name'].' Телефон: '.@$_POST['phone'].' Адрес: '.@$_POST['address'].' Время заказа: '.date("Ymd H:i:s").' Метки: utm_source: '.@$_POST['utm_source'].' utm_medium: '.@$_POST['utm_medium'].' utm_campaign: '.@$_POST['utm_campaign'].' utm_content: '.@$_POST['utm_content'].' utm_term: '.@$_POST['utm_term'].''; if(mail($email, $title, $text, "Content-type:text/plain; charset = utf-8\r\nFrom:$from")) echo "<html><head><title>Спасибо за заказ!</title></head><body><div style='margin: 150px auto; width: 300px;'></div></body></html> <meta http-equiv='refresh' content='0; url=./success_order1.html' />"; else echo "<h2>Ошибка! Попробуйте ещё раз!</h2>"; ?>