URL Variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rlm51
    New Member
    • Mar 2007
    • 29

    URL Variables

    Hi Guys ...

    Trying to pass two values as url variables such as

    MonthlySpecial. php?key=2&Speci alNo=2

    I would like to set the value of the variable "SpecialNo" with another variable whose value comes from a database table.

    I have tried:

    MonthlySpecial. php?key=2&Speci alNo=$SpecialNo ;
    MonthlySpecial. php?key=2&Speci alNo='$SpecialN o';
    MonthlySpecial. php?key=2&Speci alNo=['$Special'];

    but it passes as the word $SpecialNo not the value of the variable $SpecialNo

    Am I making a syntax error?

    I appreciate any help.
  • ridgedale
    New Member
    • Oct 2007
    • 27

    #2
    Hi, rlm51.

    Try the following:

    MonthlySpecial. php?key=2&Speci alNo=<?php echo $SpecialNo; ?>;

    That should do it.

    Comment

    • rlm51
      New Member
      • Mar 2007
      • 29

      #3
      Hey ...

      That worked ... Thank You RidgeDale

      Comment

      Working...