rnewman Posted July 9, 2007 Share Posted July 9, 2007 Trying to make new web page when user ticks off a one choice of 6 options then page adds picture of choice to a master display (of pictures) of all choices (and scales down as list gets bigger) also a text list of options already selected is also displayed. I don't think I need a data base because I only have 6 choices but some show up in list more than one time. I think I can do it with if/then/else but not sure. I like php and can get what I need for simple examples. Thanks, Ray Quote Link to comment Share on other sites More sharing options...
per1os Posted July 9, 2007 Share Posted July 9, 2007 <?php if ($x == 1) { echo 'here'; }elseif ($x == 2) { echo 'there'; }// ... etc ?> <?php switch ($x) { case '1': echo 'here'; break; case '2': echo 'there'; break; } ?> Quote Link to comment Share on other sites More sharing options...
rnewman Posted July 9, 2007 Author Share Posted July 9, 2007 I found this: <?php $theuri = $_SERVER['REQUEST_URI']; if ( ($theuri =="/") or ($theuri =="/index.php") ) { $itemis = "<img src=\"images/arrow.gif\" alt=\"arrow \"> <span class=\"note\"> Screen Text Here </span>"; } else { $itemis = "<a href=\"www.yourdomain.com/index.php\">Screen Text Here </a>"; } echo $itemis; ?> which seems more useful to me but I forgot how to do selection and regenerate page. Thanks, Ray Quote Link to comment Share on other sites More sharing options...
rnewman Posted July 9, 2007 Author Share Posted July 9, 2007 It seems like I need to do frames? Top half of page is something like a checkout page and lower half is a form for selection that updates upper half of page? Thanks, Ray Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 9, 2007 Share Posted July 9, 2007 I may have missed the point, but if you are just using static data(ie, you wont be retrieving any data from a database after the selection of a checkbox) then you might as well just use javascript to do this. If you will be quering the database based on a selection and want to change a part of your page based on the result, use AJAX. Quote Link to comment Share on other sites More sharing options...
rnewman Posted July 9, 2007 Author Share Posted July 9, 2007 I have used Java before but worry that IE will not process the right way. Thanks, Ray Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.