Hi,

Wednesday, November 6, 2002, 2:52:31 AM, you wrote:
vaue> Hi. I'm not sure if is here where i have to ask this, but, if it's 
vaue> not i hope you say to me :D.

vaue> Well the question is: i want to know how can i make to insert into 
vaue> the $_GET or $_POST arrays, an entry with a value from javascript.

vaue> Thanks

This is a post method:

<script language="JavaScript">
function doit(){
  testval = "Hello";
  document.form1.result.value = testval;
  document.form1.submit();
}
</script>

<form name="form1" action="<?echo $_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="result">
<input type="button" value="Submit" onclick="doit();">
</form>

should end up with $_POST['result'] = Hello
-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to