A
A
Alewan20102017-05-03 19:34:56
css
Alewan2010, 2017-05-03 19:34:56

How to add an INPUT value to a link?

Good afternoon!
The order.php file (I attach the code below) sucks in data from html and sends it to the mail (name, phone number, 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 redirect to the page "/success_order1.html" , but to the page "/success_order1.html?+'[email protected]$_POST['name'].'" and a page opens with a URL like: "/ success_order1.html?Igor" ?

<?php
header("Content-Type: text/html; charset=utf-8");
if($_SERVER["REQUEST_METHOD"] == "GET")
exit;

$email = "[email protected]";
$title = "Новый заказ. xxxxxxxx";
$from = 'xxxxxxxxx';
$text = 'Информация о заказе:

Товар: xxxxxxxxxxxxxxxxxxxxxxx (http://xxxxxxxx/mob1/)
Имя: '[email protected]$_POST['name'].'
Телефон: '[email protected]$_POST['phone'].'
Адрес: '[email protected]$_POST['address'].'
Время заказа: '.date("Y-m-d H:i:s").'

Метки:
utm_source: '[email protected]$_POST['utm_source'].'
utm_medium: '[email protected]$_POST['utm_medium'].'
utm_campaign: '[email protected]$_POST['utm_campaign'].'
utm_content: '[email protected]$_POST['utm_content'].'
utm_term: '[email protected]$_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>";
?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergiu Mitu, 2018-06-17
@EaGames

A slider with multiple pictures?
only there is no slick and no owl.

A
alekseydemyanenko, 2018-06-18
@alekseydemyanenko

idangero.us/swiper works best.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question