Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 1st, 2006, 12:14 AM
Authorized User
 
Join Date: Oct 2006
Location: Jakarta, , Indonesia.
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


Reply With Quote
  #2 (permalink)  
Old October 1st, 2006, 02:19 AM
Authorized User
 
Join Date: Oct 2006
Location: Jakarta, , Indonesia.
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


Reply With Quote
  #3 (permalink)  
Old October 1st, 2006, 06:38 AM
Authorized User
 
Join Date: Oct 2003
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old October 20th, 2006, 07:59 PM
Authorized User
 
Join Date: Oct 2006
Location: Jakarta, , Indonesia.
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























Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 04:58 PM.


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