Activity › Forums › Web Design (WordPress, Joomla, etc.) › Apple’s Stylish Media Browsing as aWeb App
-
Apple’s Stylish Media Browsing as aWeb App
Jake Giddens replied 18 years, 8 months ago 3 Members · 14 Replies
-
Sean Hellwig
September 12, 2007 at 9:35 pmSo you want to take the javascript variable and set it as a php variable.. Check out the screenshot below.. This will work. **UPDATE** After doing some research, i dont think it is possible to pass a JS variable to PHP variable without a page load, or a ajax call to an external php page which processes the js using the GET.
I searched this: Google Search
-
Jake Giddens
September 12, 2007 at 9:49 pmRight – only thing is I don’t need to echo $image. I just need to have it appear in another variable like this:
$display_image=”$dir/$image”;
And oh my God – wouldn’t you know it – I’ve overthought this one way too much. All I need to do is this:
echo “$dir/”;
echo $image;Boy am I stupid. Sorry to have wasted your time with this.
Thank you for taking the time to help me out.
The “Ice Cream Man“
-
Jake Giddens
September 12, 2007 at 10:00 pmAh! Nevermind I was right the first time. I’ve gone mad.
I can’t simply echo it because it needs to go in this:$theimage = getimagesize($dir/$image);
The “Ice Cream Man“
-
Jake Giddens
September 14, 2007 at 11:11 pmOk I found out that that can’t be done.
Hmm… Ok how about this – is there a way I could include a variable in a new variables name?Example
$number=”4″;
$image4=$file; //with “4” coming from the variable $number
The “Ice Cream Man“
Reply to this Discussion! Login or Sign Up
