Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
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 June 15th, 2004, 07:35 PM
Authorized User
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default register globals problem

i am trying to create a simple form where the user enters there favorite activity into a textbox and when they click submit they are taken to my php page where it says "your favorite activity is: (Whatever they entered in the textbox)". for this i am using the method=get and i can see on the php page that the name/values are working properly. However i am not seeing it display properly in the body of the page. I have the php.ini file in my c:\windows dir and i have register_globals= On with not semicolon in front of it. I am using php5 with apache 2.0.49 and have also tried php4.3.7 with apache 2.0.49. does anyone have any ideas on how to get the form to work poperly, i know it is probably something stupid i am overlooking.

thanks
 
Old June 15th, 2004, 07:38 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I'm not sure 'on' is supposed to be capitalized.

HTH,

Snib

<><
 
Old June 15th, 2004, 09:37 PM
Authorized User
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i tried putting register_globals=on but still doesnt work. after i submit the form the url of the php page is "http://localhost/text.php?Activity=baseball" so i know that the name/values are assigning properly. it just the page only displays
"your favorite activity is:" instead of displaying "your favorite activity is:baseball"

to see what i mean go here: http://paperhuman.tripod.com/index.html
not sure if tripod supports php but it doesnt matter. after you type something in the box and got to the php page you will see what i mean
 
Old June 15th, 2004, 10:00 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Aha! :D

No it appears tripod does not support PHP. Sorry :(

Snib

<><
 
Old June 16th, 2004, 08:49 AM
Authorized User
 
Join Date: May 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it really doesnt matter that tripod doesnt support php. i just put it up there to show the problem that i am having. when something is entered into the text box it does not appear on the next page. I am having the same problem with my apache and php set up and i can not figure out why. Does any one have any ideas???????





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP register globals question Charagrin BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 February 6th, 2006 06:02 PM
Register Globals File Upload Problem fshequin Beginning PHP 0 April 24th, 2005 11:56 PM
Error with variable..maybe register globals codefinder Beginning PHP 1 November 19th, 2003 03:31 PM
Register Globals Off cmiller Beginning PHP 4 August 18th, 2003 05:21 PM
Code depending on Register Globals char Beginning PHP 2 July 31st, 2003 11:45 AM





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