I'm new to PHP. I'm trying to build a form that will then update a database. When I enter information into a form field and hit submit, it does post the data, but it adds other information to it. I can't figure out what's wrong. Here's the code:
creategroupform.html:
<form id="form1" method="post" action="addGroup.php">
<table>
<tr>
<td>Enter a group name:</td>
<td><input type="text" name="myGroup" /></td>
</tr>
</table>
<input id="sub" type="submit" value="Send" />
</form>
addGroup.php:
<?php
$myGroup = $_POST['myGroup'];
echo"This is it . . . $myGroup";
?>
The results:
When I put Admin in the form box and hit submit, I get this:
This is it . . . AdminmyGroup=Admin
Can anyone tell me why it is giving me this instead of just Admin like I put in my form box?