Search found 6 matches
- Mon May 21, 2007 1:35 am
- Forum: PHP - Code
- Topic: array issues
- Replies: 1
- Views: 371
array issues
I have an array that will have several possiblities, such as a1-a12 and b1-b48 and c1-c128 yadda yadda. My question would be, if each of these represents a different unique index.html file in a seperate directory, ie, ./this/place/b1/index.html + /this/place/b2/index.html but /that/place/a1/index.ht...
- Sun May 20, 2007 3:05 pm
- Forum: PHP - Code
- Topic: switch statements
- Replies: 3
- Views: 352
- Sun May 20, 2007 2:05 pm
- Forum: PHP - Code
- Topic: switch statements
- Replies: 3
- Views: 352
switch statements
In every example of the switch() function I have seen, there is only one variable. Can switch do many variables. For Example: switch($var1, $var2, $var3){ case: blue, furry, peach; echo "you have a blue furry peach"; break; default: echo "you don't have a blue furry peach" break;...
- Sat May 12, 2007 5:32 pm
- Forum: PHP - Code
- Topic: address bar variables[SOLVED]
- Replies: 4
- Views: 862
- Sat May 12, 2007 5:01 pm
- Forum: PHP - Code
- Topic: address bar variables[SOLVED]
- Replies: 4
- Views: 862
would i need to change my function:
to look like that?
http://www.mydomain.com/index.php?something=Hello_World
Expected output
Hello_World
Code: Select all
<?php
//index.php
function hello($_GET['something']){
$hello = $_GET['something'];
echo $hello;}
hello();
?>http://www.mydomain.com/index.php?something=Hello_World
Expected output
Hello_World
- Sat May 12, 2007 4:22 pm
- Forum: PHP - Code
- Topic: address bar variables[SOLVED]
- Replies: 4
- Views: 862
address bar variables[SOLVED]
I'm trying to figure out how functions get information from the address bar, such as when I registered for this forum the web link was http://forums.devnetwork.net/posting.php?mode=register&agreed=true . I have built a simple function to try and replicate that, to an extent, but idk how to do it...