Link to home
Start Free TrialLog in
Avatar of angiweb10
angiweb10

asked on

refer to images in other page

i am a php beginner and need to apply loops, arrays...
My task is:
i have one page category.php
the user selects from 4 categories of images he can see: travel, portrait, abstract, dance
when he clicks a radio button...he has to be taken to the next page catalog.php where in
each category he sees four images with the image description and the price. I do not know how to do that link.
my category.php looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>categories</title>
<meta name="author" content="Angelika Bertsch"/>
<meta name="description" content="angelika bertsch creative imagery photography"/>
<meta name="keywords" content="photography,black and white photography"/>
<meta name="last modified" content="april 19,2006"/>
<meta http-equiv="content-type"content="text/html;charset=ISO-8859-5"/>

<link href="abertsch.css" type="text/css" rel="stylesheet"/>



</head>
<body>

<div id="logo">
<p class="logo1">Angelika Bertsch </p>
<p class="logo2">       Creative Imagery</p>
<p class="logo3">              www.abertsch.com</p>
                 </div>


<?php
print date("D dS M,Y h:i a");
?>
<form action = "category.php" method = "post">
<h1>I offer images within the following galleries</h1>
Please choose one of them:<br />

<input type = "radio" name = "category" value = "travel" checked/>travel<br />
<input type = "radio" name = "category" value = "portrait"/>portrait<br />
<input type = "radio" name = "category" value = "abstract"/>abstract<br />
<input type = "radio" name = "category" value = "dance"/>dance<br /><br />

<input type = "submit" text = "submit" value = "submit"/>
<input type = "reset" text = "reset" value = "reset"/><br /><br />

<?php
if (isset ($_POST['submit']))
{
/*
choose a category
user input  categories = array("travel","music","abstract","dance")

if user choose pos1 show 3 travel images in catalog.php
if user choose pos2 show 3 music images
if user choose pos3 show 3 abstract images
if user choose pos4 show 3 dance images

}
?>
</form>
</body>
</html>







ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial