syntax problem!!

Discussion in 'PHP' started by ausgezeichnete, Nov 9, 2007.

  1. #1
    plz could u help me to output this

    
    header("location:showmydetails?username=<?php echo $username;?>");
    
    
    PHP:
    the syntax is driving me crazy
     
    ausgezeichnete, Nov 9, 2007 IP
  2. ForgottenCreature

    ForgottenCreature Notable Member

    Messages:
    7,473
    Likes Received:
    173
    Best Answers:
    0
    Trophy Points:
    260
    #2
    What's the error message?
     
    ForgottenCreature, Nov 9, 2007 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    The error is quite obvious and I replied to the same thread on programmingtalk already.

    Do you really need to post EVERY thread on multiple forums?
     
    nico_swd, Nov 9, 2007 IP
  4. ausgezeichnete

    ausgezeichnete Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i ok i tried to change it to
    <form action="showmydetails.php?username=<?php $username?>" method="post">

    but the page didnt recognize it!!
     
    ausgezeichnete, Nov 9, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    nico_swd, Nov 9, 2007 IP
  6. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    should be

    <form action="showmydetails.php?username=<?php echo $username;?>" method="post">
     
    bobb1589, Nov 9, 2007 IP