A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: for petes sake

  1. #1
    Member
    Join Date
    Feb 2001
    Location
    London
    Posts
    66

    for petes sake

    If anyone can shed some light on my problem then I'd be most grateful. I am trying to get data from PHP into flash 2004 (actionscript 2.)

    After a lot of stony silences, I've managed at last to get the two talking to each other. The following problem remains tho;


    This code sits in my PHP and does the job of sending a url to flash where it is then sent to a text area component.


    print '<b>Name: </b>' . $name . '<br>Website: <a href="http://www.google.co.uk" TARGET="_blank">http://www.google.co.uk</a><br><br>';


    This seems ok, but when i replace the two urls' with variables, it wont have it.


    $website ="http://www.google.co.uk";

    print '<b>Name: </b>' . $name . '<br>Website: <a href="$Website" TARGET="_blank">$Website</a><br><br>';



    All that happens is that "$Website" appears in the flash text area and the link goes to $Website.com, leaving me feeling rather silly.

    Well maybe i am silly, but I've tried every permutation that i can think of and mucked around with it loads, so i'd appreciate any help.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    you probably have not tried
    $website ="http://www.google.co.uk";
    print "<b>Name: </b>" . $name . "<br>Website: <a href=\"$Website\" TARGET=\"_blank\">$Website</a><br><br>";

    Musicman

  3. #3
    Member
    Join Date
    Feb 2001
    Location
    London
    Posts
    66
    You are probably right (you are of course and it works a treat.)

    Much obliged.
    Tarkin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center