On one page, I created a form to enter a name, e-mail and the actual text of the message. After clicking on the "Send message" button on the same page, a new page opens, containing the data of the fields filled in in the previous one.
How to do it?
I found different scripts on the Internet, but some use php . I worked with PHP , but when I specify the full path, the button does not want to work:
<form method="post" action="C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\UserMail.php"> <input type="submit">
Redid one script, it turned out such a thing:
<script language="javascript" type="text/javascript"> function goMail(){ var UsName=document.getElementsByName(('UserName').value); if (confirm("Уверены, что хотите отправить сообщение?")) { document.location="UserMail.html?id="+UsName; } } </script> <form> <p>Ваше имя: </p> <input type="text" name="userName" value=""> <br> <input type ="button" value="Отправить сообщение" onClick="goMail()"> <form>
A new page is opened, but nothing is transmitted here ... Purely there ... Here is the code of that page:
<td valign="top" colspan="4" align="center"> <font id="UsName"> </font> </td>
What you need and how to do?