Hello,
Basically I'm trying to make a form, where you enter a detail into a form field, and submit the form, it then shows a load of text/code in a textarea with the data you submitted at a certain point in the text. This is my code:
For some reason, the bit that should be what they put in the port field of the form, appears as nothing in the textarea. What am I doing wrong, could someone correct me?Code:<?php if($_POST['submit']) { $port = $_POST['port']; echo "The text field: <textarea>blah blah blah $port blah blah</textarea>"; } ?> <form action="index.php" method="post"> <strong class="menu02">Your Port: </strong><br /> <input type="text" name="name" /> <br /> <input type="submit" name="submit" value="Get Code" /> </form> </div>
Thanks in advance. +rep to the help that works.






lol.