Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 4th, 2009, 01:40 AM
Authorized User
 
Join Date: Dec 2007
Location: greaternoida, u.p, India.
Posts: 66
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to sandeepgreaternoida Send a message via MSN to sandeepgreaternoida Send a message via Yahoo to sandeepgreaternoida Send a message via Skype™ to sandeepgreaternoida
Arrow Begin.Php5,,Chap04, page no.158,,ex. dynamic.php

Begin.Php5,,Chap04, page no.158,,ex. dynamic.php >> this example is not working fine....sombody if already has gone through it pls. let me know...below..i am pasting the original downloaded codes.pls. let me know the errors.
[

<html>
<head><title></title></head>
<body>
<?php
if (isset($_POST['posted'])) {
echo "<form method='POST' action='dynamic.php'>";
for ($counter = 0; $counter < $_POST['number']; $counter ++)
{
$offset = $counter + 1;
echo "<br>Please enter the name of child number $offset<br>";
echo "<input name='child[]' type='text'>";
}
echo"<br>Press the button to move on<br>";
echo "<input type='submit' value='Next'>";
echo "<input type='hidden' name='posted01' value='true'></form>";


} else {

if (isset($_POST['posted01'])) {
$count=0;
echo "Your children's names are:";
do
{
$childs_name = $_POST['child'][$count];
echo"<br><b>$childs_name</b>";
$checkempty = $childs_name;
$count = $count + 1;
} while ($checkempty != "");
if ($count == 1) {
echo "Not applicable";
}
}


?>
<hr>
<form method="POST" action="dynamic.php">
<input type="hidden" name="posted" value="true">
How many children do you have?
<input name="number" type="text">
<br>
<br>
<input type="submit" value="Send Number">
<br>
</form>
<?
}
?>
</body>
</html>

/]
__________________
sandeep gupta
  #2 (permalink)  
Old November 5th, 2013, 11:13 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same issue. Has anyone found what the error is in the script?
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 | Pg.158 - Step 2 jwriddle BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 30th, 2009 02:03 AM
does not work register.php in ch 11 begining php5 tanvir_math BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 February 7th, 2007 04:03 PM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 09:57 AM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM



All times are GMT -4. The time now is 08:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.