I am trying to pass a variable from wml when picked from a select statement and pass it into my php code. It seems to work and not to work in 2 different lines of code???
wml code:
<select name="ringcat" multiple="false">
<option onpick="#tones" value="#">#</option>
That statement assigns "ringcat" the value of # if picked, then in a different card with some php code I try to read the value in.
php code:
<?php
$rtAlpha = '$(ringcat)';
echo "ARTIST $rtAlpha:";
?><br/><br/>
<?php
if ($handle = opendir("Ringtones\$rtAlpha"))
The echo "Artist $rtAlpha:"; seems to work fine, but the opendir("Ringtones\$rtAlpha")) always returns "Warning: opendir(Ringtones#): failed to open dir: Invalid argument in" but that is the right dir I want!!!
If I put $rtAlpha = "#"; instead of $rtAlpha = '$(ringcat)'; just to test the rest of the code it works great...
Can someone help me please???, I'm new to wml and php