Another newbie question

From: Schnul (schnul_at_gmx.at)
Date: 10/31/03


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>



Relevant Pages

  • Re: OT: Serious Pussy
    ... >> brain-dead idiot after all. ... > have to realize that Harvey Mudd is an elite science and engineering ... > It drives me absolutely nuts to see incompetent idiots like George Bush ...
    (rec.gambling.poker)
  • Re: Lots of fillings... Nerve damage?? Styrofoam, AGH
    ... Rich wrote, ... I just thought of one other thing that drives me nuts: ... BTW, did you post a picture of your final veneers? ...
    (sci.med.dentistry)
  • Re: Off topic - the weekend finally ended last night
    ... headed Beijing this summer and they play at the Rose Parade, ... even then the intonation is off (drives me nuts), ... I come, I support, ...
    (rec.crafts.textiles.needlework)
  • Re: WWOT: Petty Bureaucracy Frustration
    ... about the activities of the same unfortunate target group. ... Oh yeah it drives me nuts when I go to the doctor's office and they hand ...
    (rec.arts.mystery)
  • Re: OT: things that drive me nuts
    ... Here are two things that drive me nuts. ... THAT KIND OF THING DRIVES ME NUTS. ... hobby horse to beat to death." ... "I think I was speaking to Tom, and if it wasn't Tom I'm sure it was ...
    (sci.med.transcription)