-
Meh, i need help ^.^
Ok i have this:
PHP Code:
echo("<form action=\"edituser.php?user=$_POST[username]\"><font face=\"Verdana\" size=\"1\"><b>Edit User</b><br><br>Please type in the user you wish to edit<br><input type=\"text\" input size=\"25\" name=\"username\"><br><br><input type=\"submit\" name=\"edituser\" value=\"Edit This User\"></form>");
When i press submit it goes to this:
edituser.php?username=Ryan&edituser=Edit+This+User
So its adding on &edituser=Edit+This+User to the end and is going to username=Ryan not user=Ryan and i dont understand why ^.^
-
On your form, change the username field to user
-
Ah yes, how dumb of me lol..
Anyhow it still adds &edituser=Edit+This+User to the end of it though :L
-
The submit has its value at "Edit User", so remove that
-
If it doesnt have Edit User it will be a blank button :|
-
-
Ha im so thick somtimes, submit buttons dont need a name do they! Ha mod close fixed.