Web hosting directory - Next you loop through the $images array, constructing
Next you loop through the $images array, constructing the rest of your HTML select tag (options). The $image_url variable is set to the default image s URL: while ($imagearray = mysql_fetch_array($images)) { $iloop++; $iurl = $imagearray[ img_url ]; $idesc = $imagearray[ img_desc ]; if ($iloop == 1) { echo n ; $image_url = $imagearray[ img_url ]; } else { echo n ; } } ?> Then you place the default image on the page, just below the select box. You are going to use JavaScript to change this image whenever the user selects a different postcard from the select box. You could use PHP to do this instead, but it would reload the page every time you changed the image. Using JavaScript in this situation helps you reduce loading time and round-trips to the server. width=320 height=240 border=0 id= postcard > What follows, of course, is the JavaScript function that changes the image. It should be pretty selfexplanatory if you know JavaScript. If you don t know JavaScript, this is the JavaScript function that changes the image. If you want to know more about JavaScript, you can buy JavaScript For Dummies, Third Edition, by Emily A. Vander Veer (Wiley, 2000). Now you move on to sendconf.php. Much of it is similar to sendmail.php, so we ll just touch on some of the more important points: if (!empty($_POST[ postcard ])) { foreach($_POST[ postcard ] as $value) { $postcard = $value; } } Remember, $postcard is an array. A simpler method of getting the value of the postcard would have been to use the 0 key of the $postcard array: $postcard = $_POST[ postcard ][0]; 351 Sending E-mail
We recommend high quality webhost to host and run your jsp application: christian web host services.