Register

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
    Posts
    4
    Member #
    11964
    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" "http://www.w3.org/TR/html4/loose.dtd">

    <html>
    <head>
    <title>shopPhilly</title>
    <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" />
    </head>
    <body>

    <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>


    <p>
    <FORM METHOD="POST" ACTION=\"$_SERVER[PHP_SELF]\">

    <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>

    </FORM>
    </p>



    </div>

    <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>

    </ul>

    <div id = "disclaimer">
    <a href="http://hawk.csc.villanova.edu/~f05g04/prototype/contactUs.html">Contact Us!</a> |
    <a href="http://hawk.csc.villanova.edu/~f05g04/prototype/mailinglistform.php">Join Our Mailing List!</a> |
    <a href="http://hawk.csc.villanova.edu/~f05g04/prototype/adminlogin.html">Administrator Login</a><br>
    <p>This is website was created as a Senior Project in <a

    href="http://www.csc.villanova.edu/%7Ejoyce/csc4790/f05/index.html">CSC 4790</a>
    at <a href="http://www.villanova.edu">Villanova University</a>. </p>
    </p>
    </body>
    </html>

  2.  


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: PurevB.com