get data not being passed...

Discussion in 'PHP' started by Greenmethod, Jul 25, 2007.

  1. #1
    <form action="edit_cust.php" method="GET">
    <input type='hidden' name='cust_no' value=<? {$row['Cust_No'];} ?>>
    <input type="submit" value="Edit Customer">
    </form>
    PHP:
    $cust_no = $_GET['cust_no'];
    PHP:
    That is the code that i'm using .. i've looked and overlooked the case and can't figure it out.. any ideas?
     
    Greenmethod, Jul 25, 2007 IP
  2. bloodredxxx

    bloodredxxx Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try

    <input type="hidden" name="cust_no" value="<?=$row['Cust_No'] ?>">
    PHP:
     
    bloodredxxx, Jul 25, 2007 IP
  3. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #3
    
    <input type='hidden' name='cust_no' value="<? echo $row['cust_no']; ?>">
    
    PHP:
    Also, php is case senative. $row['cust_no'] is not $row['Cust_No']

    .
     
    exodus, Jul 25, 2007 IP
  4. Greenmethod

    Greenmethod Peon

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks! Works great!

    Exodus.. it is Cust_No in the database, so that is what it should be in the $row['Cust_No']. Thanks for your help though!
     
    Greenmethod, Jul 25, 2007 IP