RE: [PHP-DB] Need help(javascript)
| From: | Dave Watkinson | Date: | Wed, 10 Oct 2001 07:16:11 +0000 |
| Subject: | RE: [PHP-DB] Need help(javascript) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13186@lists.php.net to get a copy of this message | ||
we've had this before ... you need to echo the form variable, not the
letter c
open("test1.php?mm=<? echo $c; ?>","")
Dave
-----Original Message-----
From: its me [mailto:fotna@egypt.net]
Sent: 10 October 2001 08:21
To: php-db@lists.php.net
Subject: [PHP-DB] Need help(javascript)
i have this :
<html>
<head>
<script>
function test()
{
c=document.forms[0].T1.value
document.write(c)
open("test1.php?mm=c","")
}
</script>
</head>
<body>
<form >
<p><input name="T1"></p>
<p><input type="button" value="Submit"
onClick="test()"><input
type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
and test1.php have:
<?php
echo $mm;
?>
the problem is that it echos c,not the value of form field.
ANY HELP!!!
THANKX GUYS
------------------------------------------------------------
------------------------------------------------------------
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net