PHP - How to Dynamically insert images

by 10 replies
14











I'm learning php program in my spare time and this is beyond me at this point.

Thanks in advance for any help here.
#programming #dynamically #images #insert #php
  • [DELETED]
  • Try this:

    $img = $_GET[img];

    if(!$img){

    }
    else{

    • [ 1 ] Thanks
    • [1] reply
    • Defualt picture loads but not if I use the variable in the url. http://mysite.com/test.php?img=test

      It works if I add a period after "test" in url. Is it ok to use a period in the url like this:.&morednynamiccode
      • [1] reply

Next Topics on Trending Feed

  • 14

    I'm hoping someone can help me sort out some dynamic image insertion using PHP. All photos are in the same directory and have same file extension .gif Goal is to dynamically insert a picture based on incoming url. And if incoming url doesn't have the variable, show a default picture.