Jump to content


Photo

Sending data


  • Please log in to reply
1 reply to this topic

#1 chng

chng
  • Members
  • Pip
  • Newbie
  • 1 posts
  • LocationMalaysia

Posted 21 August 2004 - 03:58 PM

I'm using Apache as server. I can't send data from test_php.php to test1.php for display. Can anyone help me? Your help is much appreciate.

test_php.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="test1.php">

<input type="text" name="variable">

<input type="Submit" name="Submit" value="process">
</form>
</body>
</html>

test1.php
<html>
<head>
<title>1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
nama : <?php echo $variable;?>
?>
</body>
</html>

#2 PDM

PDM
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 21 August 2004 - 11:08 PM

<?php echo $HTTP_POST_VARS['variable'];?>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users