If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1

Thread: php question

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Member #
    I understand how to code a form that has radiobuttons or select from a pull down but I want the form to have images and when the person clicks on the apple, ruler, pear, or hourglass images it then pulls from my database. What would be the code for selecting a gif <input type= ....> and the value?

    Here's the code for the images:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">

    <link rel="stylesheet" type="text/css" href="/include/stylesheet.css">
    <style type="text/css" media="all">@import "shopPhillyStyle.css";</style>
    <meta name="author" content="Lauren Pisciotta" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

    <div id = "content">
    <h2> shopPhilly Style Guide</h2>
    <p> Determine your body type then click on the image below to see the best styles for your body! </p>


    <select name = "sortChoice">

    option value=<li> <a id="apple" href="bodyType"><img src="apple.gif" alt="Apple"></a></li>
    <li> <a id="ruler" href="bodyType"><img src="ruler.gif" alt="Ruler"></a></li>
    <li> <a id="hourglass" href="bodyType.php"><img src="hourglass.gif" alt="Hourglass"></a></li>
    <li> <a id="pear" href="bodyType.php"><img src="pear.gif" alt="Pear"></a></li>

    </select> <br>

    <p><input type="submit" name = "submit" value=" "></p>



    <h1><img src="shopPhilly.GIF" alt="shopPhilly" /></h1>

    <ul id = "links">

    <li> <a id="bag3" href="shopPhillyindex.php"><img src="blank.gif" alt="Home"></a></li>
    <li> <a id="bag1" href="shopPhillyStores.php"><img src="blank.gif" alt="Store Info"></a></li>
    <li> <a id="bag2" href="shopPhillyCalendar.php"><img src="blank.gif" alt="Calendar"></a></li>
    <li> <a id="bag4" href="shopPhillyStyle.php"><img src="blank.gif" alt="Style Guide"></a></li>


    <div id = "disclaimer">
    <a href="">Contact Us!</a> |
    <a href="">Join Our Mailing List!</a> |
    <a href="">Administrator Login</a><br>
    <p>This is website was created as a Senior Project in <a

    href="">CSC 4790</a>
    at <a href="">Villanova University</a>. </p>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 07:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: