Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 1st, 2015, 07:50 AM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter two excercise 4

Hi all,

I wonder what the purpose is of excercise 4 of chapter two. I made did the excecise but nothing is changing when I change the choices in the drop down menus?
Did I make a mistake in the code?

here is the link: http://php.aryapratinidhisabha.org.uk/excercise4.php.

thanks,
Nav

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<table>
<tr>
<td> <label for=”font”> Select Font: </label> </td>
<td> <select id=”font” name=”font”>
<option value=”Verdana”> Verdana </option>
<option value=”Arial”> Arial </option>
<option value=”Times New Roman”> Times New Roman </option>
</select>
</td>
</tr> <tr>
<td> <label for=”size”> Select Size: </label> </td>
<td> <select id=”size” name=”size”>
<option value=”10px”> 10px </option>
<option value=”12px”> 12px </option>
<option value=”16px”> 16px </option>
<option value=”20px”> 20px </option>
</select>
</td>
</tr> <tr>
<td> <label for=”color”> Select Color: </label> </td>
<td> <select id=”size” name=”size”>
<option value=”black”> black </option>
<option value=”green”> green </option>
<option value=”purple”> purple </option>
<option value=”red”> red </option>
</select>
</td>
</tr>
</form>

<p <?php
echo ' style=”font-family: ' . $_SESSION['font'] . '; ';
echo 'font-size: ' . $_SESSION['size'] . '; ';
echo 'color: ' . $_SESSION['color']. ';" ';
?>> Text to display </p>


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 - 2nd excercise CodingChris BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 3 January 7th, 2015 11:47 AM
Chapter 11 - Excercise 1 (ClientIDMode) Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 6 May 1st, 2012 12:58 PM
Chapter 11 - Excercise 1 Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 29th, 2012 06:32 AM
Chapter 4 Excercise 2 hellrhyme13@hotmail.com BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 8 August 19th, 2010 11:24 PM
C#,chapter 8 excercise akbard BOOK: Beginning ASP.NET 1.0 2 October 7th, 2003 03:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.