Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Apple’s Stylish Media Browsing as aWeb App

  • Sean Hellwig

    September 12, 2007 at 9:35 pm

    So 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 pm

    Right – 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.

    TheIce Cream Man

  • Jake Giddens

    September 12, 2007 at 10:00 pm

    Ah! 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);

    TheIce Cream Man

  • Jake Giddens

    September 14, 2007 at 11:11 pm

    Ok 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

    TheIce Cream Man

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy