Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 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 September 3rd, 2003, 01:39 PM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default form data not passed to php

I have read the advice about superglobals, when globals are off. But in ch16 I cannot see what to do - target is used to direct the form action file. Not Post or Get.
$criteria gets an error message re no value.
<FORM NAME="search" ACTION="mall.php" target="mall">
<INPUT TYPE="text" NAME="criteria" SIZE="20">
<BR>
<INPUT TYPE="submit" VALUE="Search">

Can someone point out what I can do?
Ken

 
Old September 3rd, 2003, 02:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no method attribute in the <form> tag. In this case, the method defaults to GET.

You can add a method (post OR get) to the form and modify the recieving code appropriately.


Take care,

Nik
http://www.bigaction.org/
 
Old September 4th, 2003, 09:15 AM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Nik.
$criterion=$_GET['searchword'];is so simple but i am so pleased..
Ken






Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with php variable passed to perl... nriv08 Beginning PHP 0 October 9th, 2008 12:54 PM
How to transfer data from one php form to another [email protected] PHP How-To 2 November 27th, 2006 08:47 AM
Query String not passed on from form submission thomas_v_a PHP Databases 5 May 24th, 2004 12:01 PM
Can't display input variable passed on to php code mespejo Beginning PHP 2 November 25th, 2003 03:32 PM
PHP Session passed to different sub domains h8dk97 Pro PHP 3 November 6th, 2003 10:20 PM





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