Search found 6 matches

by kcpaige89
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...
by kcpaige89
Sun May 20, 2007 3:05 pm
Forum: PHP - Code
Topic: switch statements
Replies: 3
Views: 352

That should work with GET variables correct? $v = array("_$GET['color']", "_$GET['state']", "_$GET['fruit']"); switch($v) { case array("blue", "furry", "peach"): echo "you have a blue furry peach"; break; default: echo "you d...
by kcpaige89
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;...
by kcpaige89
Sat May 12, 2007 5:32 pm
Forum: PHP - Code
Topic: address bar variables[SOLVED]
Replies: 4
Views: 862

Thanx alot.
by kcpaige89
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:

Code: Select all

<?php
//index.php
function hello($_GET['something']){
$hello = $_GET['something'];
echo $hello;}
hello();
?>
to look like that?

http://www.mydomain.com/index.php?something=Hello_World

Expected output

Hello_World
by kcpaige89
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...