PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am passing this name: <br><br><?php echo $userdataї'username']; ?><br><br>With this link:<br><br>
<form action="http://localhost/clanmanager/default.aspx" method="post">
<input type="hidden" name="userid" value="<?php echo $userdataї'username']; ?>">
<input type="image" src="clickme.jpg" border="0">
</form> I have the following code:
Which displays the 'echo $userdata' fine... the problem is when it submits to the default.aspx it's not passing the username. I am overlooking something, can someone help me?
I am passing this name: <br><br>Anonymous<br><br>With this link:<br><br>
<form action="http://localhost/clanmanager/default.aspx" method="post">
<input type="hidden" name="userid" value="Anonymous">
<input type="image" src="clickme.jpg" border="0">
</form>
Sure - providing that "Anonymous" is a valid userid it means there is nothing wrong with your PHP code at all. It is doing exactly what you told it to do.
This clanmanager ASPX script is either expecting a different value to be sent to it, or a different method (GET instead of POST maybe?) but the problem IS there.