Another newbie question
From: Schnul (schnul_at_gmx.at)
Date: 10/31/03
- Next message: Rolf Wester: "Re: Beginners problem"
- Previous message: Richard Grove: "Re: Beginners problem"
- Next in thread: Schnul: "Re: Another newbie question"
- Reply: Schnul: "Re: Another newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 18:33:39 +0100
I searched a lot and didnt't yet find an answer why this does not work
for me. It drives me already nuts.
I've a page I'd like to submit and on the next page I want to access the
input from the page before. Even when trying it with different methods
I'll don't get it work. It only shows me empty arrays.
Help would be very much appreciated.
Following is the page (mask_insert.php):
<html>
<head>
<title>Insert Mask</title>
</head>
<body>
<form action="mask_insert.php" method="POST">
<table>
<tr>
<td>Name:</td>
<td><input type="text" name="gname"></td>
</tr>
<tr>
<td>Mail:</td>
<td><input type="text" name="gmail"></td>
</tr>
<tr>
<td>Comment:</td>
<td><textarea name="gcomment" rows=4
cols=50></textarea>
</tr>
<tr>
<td span="2"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
Results:<br>
<?php
echo "<br>Without doing anything:";
print_r($_POST);
print_r($_GET);
print_r($_REQUEST);
print_r($HTTP_POST_VARS);
print_r($HTTP_GET_VARS);
echo "<br>With making global:";
global $_POST;
global $_GET;
global $_REQUEST;
global $HTTP_POST_VARS;
global $HTTP_GET_VARS;
print_r($_POST);
print_r($_GET);
print_r($_REQUEST);
print_r($HTTP_POST_VARS);
print_r($HTTP_GET_VARS);
print_r($GLOBALS['HTTP_POST_VARS']);
print_r($GLOBALS['HTTP_GET_VARS']);
echo "<br>With extract:";
extract($_REQUEST);
print_r($_POST);
phpinfo();
?>
</body>
</html>
- Next message: Rolf Wester: "Re: Beginners problem"
- Previous message: Richard Grove: "Re: Beginners problem"
- Next in thread: Schnul: "Re: Another newbie question"
- Reply: Schnul: "Re: Another newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|