|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
opening a URL
I would like some help
Basically I would liek to know how to open a URL depending on whethere a boolena variable is true or not EG if (true) { open URL etc } else { open different URL } |
|
#2
|
|||
|
|||
|
you may consider to use redirecting header function.
header("Location:$url");
__________________
Rathaur ====================== Knowledge is Power |
|
#3
|
|||
|
|||
|
Need help in passing variables
Hey can any1 help me....
I get users to login to authenticate and load a page if they have the right access (read in from a database).... Then if they have access a form is loaded in which they fill it and submit it....... The problem is when the user submits the information I cannot tell the database which row to put it in, as I can only pass the variables created by the HTML form....there is others (in particular a php variable $memberID which I also need to pass with the form so I can tell the database which row to put it in..........I cannot figure it out.... |
|
#4
|
|||
|
|||
|
Kramer.
I would say that the header is your best bet, as rathaur stated. Just use something like if($loggedIn == true) header("location: loggedin.php"); else header("location: error.php"); but remember you can't have any whitespace before outputingg headers on your page. If you do, add ob_start(); to the top of your page to buffer the output. |
|
#5
|
|||
|
|||
|
try using input type of hidden in your form ex:
echo " <input type ='hidden' name='memberID' value=$memberID>"; |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > opening a URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|