Form Validation, variable problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • geronimi

    #1

    Form Validation, variable problem

    Hi,

    i use phpdev and I have a stupid problem.

    I use a form and I want to pass a variable (name) from one page to
    another (overview.php).

    .........
    <form method="post" action="overvie w.php">
    <table width="100%" border="0">
    <tr>
    <td width="24%">Nam e : </td>
    <td width="76%"><in put type="text" name="name"></td>
    </tr>
    <tr> ............... .

    when I fill in something, the name variable will be passed when i press
    the submit button, but the strange thing is, that it doens't pass
    anything to overview.php !!!!

    a piece of overview.php:
    ......
    <td width="18%">Naa m van het bedrijf: </td>
    <td width="82%"><?p hp echo $naam; ?></td>
    ......


    so it is very easy stuff I want (pass a variable), but in phpdev (have
    tried every version i found on the net) i doesn't work, but in my
    webserver (www.xyz.be) it works!!!! it give the good value through...

    has anybody has a solution? because i need phpdev to work (i go on
    holiday a need to finish some stuff)

    thx
    geronimo

  • Andy Hassall

    #2
    Re: Form Validation, variable problem

    On 25 Jun 2005 10:34:09 -0700, "geronimi" <webjc007@hotma il.com> wrote:
    [color=blue]
    > <td width="82%"><?p hp echo $naam; ?></td>[/color]





    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Fire Juggler

      #3
      Re: Form Validation, variable problem

      Well, from what i can see
      you've got
      <td width="76%"><in put type="text" name="name"></td>

      but here you have

      <td width="82%"><?p hp echo $naam; ?></td>

      i don't know if that was a typing error while typing on to the newsgroup,
      but it'd probs worked if you changed the input name to naam.
      eg.
      <td width="76%"><in put type="text" name="naam"></td>
      ---
      Kathryn (Fire Juggler)




      "geronimi" <webjc007@hotma il.com> wrote in message
      news:1119720849 .680154.80420@f 14g2000cwb.goog legroups.com...[color=blue]
      > Hi,
      >
      > i use phpdev and I have a stupid problem.
      >
      > I use a form and I want to pass a variable (name) from one page to
      > another (overview.php).
      >
      > ........
      > <form method="post" action="overvie w.php">
      > <table width="100%" border="0">
      > <tr>
      > <td width="24%">Nam e : </td>
      > <td width="76%"><in put type="text" name="name"></td>
      > </tr>
      > <tr> ............... .
      >
      > when I fill in something, the name variable will be passed when i press
      > the submit button, but the strange thing is, that it doens't pass
      > anything to overview.php !!!!
      >
      > a piece of overview.php:
      > .....
      > <td width="18%">Naa m van het bedrijf: </td>
      > <td width="82%"><?p hp echo $naam; ?></td>
      > .....
      >
      >
      > so it is very easy stuff I want (pass a variable), but in phpdev (have
      > tried every version i found on the net) i doesn't work, but in my
      > webserver (www.xyz.be) it works!!!! it give the good value through...
      >
      > has anybody has a solution? because i need phpdev to work (i go on
      > holiday a need to finish some stuff)
      >
      > thx
      > geronimo
      >[/color]


      Comment

      • geronimi

        #4
        Re: Form Validation, variable problem

        <?php
        if(!empty($_GET )) extract($_GET);
        if(!empty($_POS T)) extract($_POST) ;
        ?>

        solved the problem!

        thx lads!

        Comment

        Working...