Jump to content

sbo1

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Posts posted by sbo1

  1. [color=blue]I have an AJAX script that returns a variable from a php script. No problem this next snippet works great. Here it is:[/color]


    [code]<?php
    header("Content-Type: text/xml");
    echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; ?>
    <!-- here is the XML -->
    <totals> <picture><?php echo $picture; ?></picutre> // returns sun.jpg </totals>
    [/code]

    [color=blue]I get sun.jpg returned. Now here is the problem I want to insert the $picture (i.e sun.jpg) variable so that the result is a hyperlink like this...
    [/color]



    [code]<picture> <a href="images/<?php echo $picture; ?>"></a> </picutre> //doesn't work[/code]


    [color=blue]I try replacing the following signs  < " and > with codes:[/color]




    [code]
    <picture>&lta href=&quotimages/<?php echo $picture; ?>"&gt&lt/a&gt </picutre>[/code]


    [color=blue]but again this does not work. I get nothing returned at all with the above code. I am a newbie at ajax. I have only a cursory knowledge of XML and Javascript. I am sure there is something silly I am doing here. Any clues? Thanks for any help. Steven.[/color]

    (edited by a moderator to clean up the code so it wraps)
  2. Thank you so much for the replies! It is so nice that you both take time to help out. Thanks you both.

    P. S To anyone who wants to add more or elaborate please feel free to do so. I am still learning and am glad of all help. Thanks to everyone who takes the time to post.
  3. I would like to join short some mp3 files together for people to listen to on their mp3 players.

    These will not be illegal files.

    I will not know what files to join until they are requested and the order of the files is important and will vary.

    I don't know where to really start. Could it be done as a playlist that lists the files to play that the users could download aolng with the playlist. I don't even know thje structure of an mp3 playlist. If anyone could point me in the right direction it would be greatly appreciated.


    Steven O.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.