echo $ex<?php>
if(isset($_GET['ex']))
{
$ex = $_GET['ex'];
}
?>
<form action="" method="POST">
text: <input type="text" name="ex">
<input type="submit" name="submit" value="submit">
</form>
<?php
echo $ex
?>
Thats your problem that code isnt finished. Either finish it or remove it.
Yeah i tested it the $ex is a unnecessary code and it messes up the whole script. Just take it off thats how i fixed it.
Awhhhh i see why its not working
You need to fix that spot to this<?php
if(isset($_GET['ex']))
{
$ex = $_GET['ex'];
}
?>
<form action="" method="POST">
text: <input type="text" name="ex">
<input type="submit" name="submit" value="submit">
</form>
---------------
<?php
echo $ex
?>
---------------
echo $ex
<?php>
and at the top you made it <?php
Gotta make it <?php> you just made simple mistakes you didnt notice.