Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
 
Old October 1st, 2006, 12:14 AM
Authorized User
 
Join Date: Oct 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Nicholsen
Default Beginning PHP4

Beginning PHP4, 3730, page 79
My name is Nick. I learn php from Beginning PHP 4 from Wrox. I have some problem that need help from anybody who read my problem.
Why I can’t get data from the client!
The variable name that I make is already correct and I turn on register_globals in php.ini. but I still can’t view the result of user input.
Please give me the detail
echo “<input type=’text’ name=’textbox’>”;
Is the same as
echo “<input type=TEXT name=TEXTBOX>”;
I’m little confuse about it.
Thank You Very Much


 
Old October 1st, 2006, 02:19 AM
Authorized User
 
Join Date: Oct 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Nicholsen
Default

oops sorry
I have gotten the answer of my problem
But I have a new problem like this
echo"<input type='Checkbox' name='hobby[]' value='Graphic Design'>Graphic Design";
echo"<br>";
echo"<input type='Checkbox' name='hobby[]' value='2-D Animation'>2-D Animation";
echo"<br>";
echo"<input type='Checkbox' name='hobby[]' value='3-D Modelling'>3-D Modelling";
echo"<br>";
echo"<input type='Checkbox' name='hobby[]' value='Programming'>Programming";

How I can get all the value from the array hobby[] and view it in another php page
Thank You Very Much


 
Old October 1st, 2006, 06:38 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Use print_r to extact a human readable form of every element in an array:

print_r($hobby);

Manual here: http://uk.php.net/print_r

David

 
Old October 20th, 2006, 07:59 PM
Authorized User
 
Join Date: Oct 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Nicholsen
Default

Thank you for your participation
I have another question
In JSP we can use Response.sendRedirect(“www.yahoo.com”) to go to another page directly from one page, without click any link to go to another page.
What command/syntax was being used in PHP to go to another page directly from one page, without click any link to go to another page.
Is JSP better and simpler than PHP
I have another question about frame

Can I view php or jsp file inside the frame. How about the coding.If the frame name is example.
<form method="post" action="sukses.php" target="example




























Similar Threads
Thread Thread Starter Forum Replies Last Post
This book or Beginning PHP4? thegooner BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 May 21st, 2004 01:57 PM
Beginning PHP4 keithu1 Wrox Book Feedback 1 October 1st, 2003 07:05 AM
Beginning PHP4 register_globals=Off Cambo BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 August 30th, 2003 02:34 PM
Beginning PHP4 sethtrain Wrox Book Feedback 3 June 26th, 2003 04:20 AM
Beginning php4 wjt11 All Other Wrox Books 0 June 12th, 2003 11:48 AM





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