The GET method takes a value from

<input type="email" name="mail2" style="height: 30px; text-align: center;" x-autocompletetype="email" size="30" required> 

and passes to the end of the line the desired URL. The bottom line is that the URL contains a request that is replaced by mine.

In the end, instead of the right:

 http://www.сайт.com/?utm_source=NT&utm_medium=cpc&utm_content=small&utm_campaign=rass_mail2=мыло 

I get:

 http://www.сайт.com/?mail2=мыло 

Complicating all this is that you can not use php and js

Code:

 <!DOCTYPE html> <html> <head> <title>BELLAKT</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body style="max-width:400px; background: url(img/background.jpg) no-repeat;"> <form action="http://www.сайт.com/?utm_source=NT&utm_medium=cpc&utm_content=small&utm_campaign=rass_" method="get" target="_blank"> <div style="padding-top: 230px; text-align: center;"> <input type="email" name="mail2" style="height: 30px; text-align: center;" x-autocompletetype="email" size="30" required> </div> <div style="padding-top: 8px; text-align: center;"> <input type="submit" value="" style="background: url(img/btn.png)no-repeat center; width: 150px; height: 38px;"> </div> <div style="padding-top: 300px"></div> </form> </body> </html> 

  • Without additional intervention using php or js you cannot do what you have in mind - Alexey Shimansky
  • @ Alexey Shimansky Please try to publish detailed answers containing specific examples. Short single-line comments do not add knowledge to the Runet. - Nicolas Chabanovsky

1 answer 1

Without php and js, you need to remove the parameters from the action in the hidden input

 <!DOCTYPE html> <html> <head> <title>BELLAKT</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body style="max-width:400px; background: url(img/background.jpg) no-repeat;"> <form action="http://www.сайт.com" method="get" target="_blank"> <input type="hidden" name="utm_source" value="NT"/> <input type="hidden" name="utm_medium" value="cpc"/> <!-- ... --> <div style="padding-top: 230px; text-align: center;"> <input type="email" name="mail2" style="height: 30px; text-align: center;" x-autocompletetype="email" size="30" required> </div> <div style="padding-top: 8px; text-align: center;"> <input type="submit" value="" style="background: url(img/btn.png)no-repeat center; width: 150px; height: 38px;"> </div> <div style="padding-top: 300px"></div> </form> </body> </html>