#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    PHP script for a page to display a .jpg image


    I created a page in PHP that displays a form which feeds info into a mysql database. However, once users complete the form, I need a script that will allow the page to display a specific .jpg image.
    Is there a script to this. Need help PLS????
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2010
    Posts
    10
    Rep Power
    0
    Hello,

    I'm guessing you mean if they have submitted data you want to show a image like
    blah blah you completed this form...

    on ur script page which you are sending data to you should have a $_POST['xxx'] on it in which i'm hoping you are using
    Code:
    <?php
    if(isset($_POST['formvalue'])){
    // do your form checking to make sure everything is ok...
    
    
    
    // everything is good
    echo '<img src="path/to/image.jpg" />';
    }
    ?>

IMN logo majestic logo threadwatch logo seochat tools logo