|
You could do something like
$s_values[1] = 12;
$s_values[2] = 14;
Then have something like
$this_s_value = $s_values[$_GET["s"]];
That would make $this_s_value = whatever you have setup above. For example:
If s = 1;
The code I just had would basically make it like this.
$this_s_value = $s_values[1]; // which is 12
Hope that makes sense and is what you want.
Andy
|