PDA

View Full Version : WTF have i done wrong


forrie
01-30-2007, 07:34 AM
i have a form that is ment to send a user's Name to my custom page but i cant seem to get it working heres the code

<form action="../addreview.php" method='post' name="reviewform" >

<input name="User" type="hidden" />
<a href="javascript:getreview()">Add Review</a>
</form>

<script language="JavaScript" type="text/javascript">
<!--
function getreview ()
{
document.reviewform.User.value = ' $bbuserinfo[username] ';
document.reviewform.submit() ;
}
-->
</script>

if that code is correct i should be able to use $user = $_REQUEST['User'];
right

cheers forrie