PDA

View Full Version : Meh, i need help ^.^



Motion
10-09-2006, 02:41 PM
Ok i have this:



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 ^.^

:Blob
10-09-2006, 02:42 PM
On your form, change the username field to user

Motion
10-09-2006, 02:45 PM
Ah yes, how dumb of me lol..

Anyhow it still adds &edituser=Edit+This+User to the end of it though :L

:Blob
10-09-2006, 02:46 PM
The submit has its value at "Edit User", so remove that

Motion
10-09-2006, 02:47 PM
If it doesnt have Edit User it will be a blank button :|

:Blob
10-09-2006, 02:51 PM
Post your form code

Motion
10-09-2006, 02:53 PM
Ha im so thick somtimes, submit buttons dont need a name do they! Ha mod close fixed.

Want to hide these adverts? Register an account for free!