Menu

Preview Before Send (array display)

Help
2006-11-11
2013-06-03
  • OzzStudent21

    OzzStudent21 - 2006-11-11

    Hey all, great program! has saved me heaps of time

    At the moment im doing a preview before send

    I have afew text fields and 2 upload files; now when the user previews the page they can see their
    name:
    bio:
    phone:
    website:
    Image: (upload)
    Song: (upload)
    the text values come up as the correct vaules from the form using "echo", except the Image and Song display "Array"

    I have tryed <a href="<?php echo $Song; ?>"><?php echo $Song; ?></a> but it still displays Array only it is linked.

    but in mysql under both image and song it has the full local host address, how could i draw out this address to link it ? im very lost with this lol, any help would be GREAT! thanks.

     
    • Eric Meijer

      Eric Meijer - 2006-11-13

      How is your $Song defined? As an array?

      Look at this:

      // You can use arrays
      $Song = array("value" => "Songtitle");

      print "this is {$Song['value']} !"; // this is Songtitle!

      To print your array values you can't use: print $Song;

      Hope this solves your problem.

      Grtz, Eric

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.