|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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).] |
|
#4
|
|||
|
|||
|
<?
<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).] |
|
#5
|
|||
|
|||
|
Thanks a lot all of you. It is working.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > passing variables from one php3 file to another without using forms. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|