#1
  1. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    I want to pass values of variables from one php3 file to other php3 files. Also I am looking for tutorials for how to use logical operators in php3?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    well depending on what you want to do, you could just pass them across as part of an href stmt
    eg: <a href="index.php3?Var1=$Val1&Var2=$Val2&Var3=$Val3">

    but that would mean filling in all the possible options, what variables are you trying to pass across and why no form (out of interest ), sorry if I sound unhelpful I'm just trying to work out what u r doing

    ------------------
    cheers
  4. #3
  5. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    Sorry to bother all of you. I am new to this. I will appreciate your help.

    I tried following code in .php3 files
    In Enter_Data.php3 file
    <?
    <a href="Check_Data.php3?Var1=ana&Var2=dat&Var3=shi">
    ?>

    in Check_Data.php3 file
    <?
    PRINT "$Var1";
    PRINT "$Var2";
    PRINT "$Var3";
    ?>

    I am getting following error.
    Parse error: parse error in /usr/home17/anant/public_html/Enter_Data.php3 on line 45




    [This message has been edited by ads (edited January 20, 2000).]
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Norfolk, NE US
    Posts
    11
    Rep Power
    0
    <?
    <a href=".... >
    ?>

    doesnt work. try just creating the link to the php file in a normal html file.
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <html>
    <body>
    <a href="Check_Data.php3?Var1=ana&Var2=dat&Var3=shi">Click</a>
    </body>
    </html>
    [/code]

    [This message has been edited by AxB (edited January 20, 2000).]
  8. #5
  9. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    Thanks a lot all of you. It is working.

Similar Threads

  1. Passing POST variables
    By rlorenzo in forum PHP Development
    Replies: 11
    Last Post: June 6th, 2004, 03:00 PM
  2. Replies: 7
    Last Post: February 16th, 2004, 03:55 PM
  3. help with assigning variables, variable passing/ retrieval
    By pinkipodmini in forum PHP Development
    Replies: 0
    Last Post: February 13th, 2004, 10:40 PM
  4. loading variables from an external file
    By paulc218 in forum Flash Help
    Replies: 9
    Last Post: February 11th, 2004, 11:30 AM
  5. passing variables from a txt file to flash
    By matto in forum Flash Help
    Replies: 1
    Last Post: January 20th, 2004, 12:25 PM

IMN logo majestic logo threadwatch logo seochat tools logo