[PHP] Server side issue with form
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Server side issue with form
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
On 6/10/07, Roy W [EMAIL PROTECTED] wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? I don't think that's possible, please show us part of your code, as I expect the problem to be there. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
On 6/10/07, Tijnema [EMAIL PROTECTED] wrote: On 6/10/07, Roy W [EMAIL PROTECTED] wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? I don't think that's possible, please show us part of your code, as I expect the problem to be there. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Are you attempting to call the variables globally? If that's the case, try $_GET if you're calling the form as a GET request, $_POST as a POST request, or $_REQUEST to get anything sent along (including cookie information). Your host may have register_globals = Off in their php.ini, and that's an option you can't override. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
Here is the code: index.html html body form action=test.php method=post Your name: input type=text name=YourNameBR Cost of a lunch: input type=text name=CostOfLunchBR Days Buying Lunch: input type=text name=DaysBuyingLunchBR input type=submit /form /body /html index.php ? $Today = date(1 F d, Y); ? html body Today's Date: ? print(h3$Today/h3\n); print($YourName, you will be out ); print($CostOfLunch * $DaysBuyingLunch); print( dollars this week.BR\n); ? /body /html Returns: Today's Date: 1 June 10, 2007 , you will be out 0 dollars this week. Thanks in advance for any feedback! Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/10/07, Roy W [EMAIL PROTECTED] wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? I don't think that's possible, please show us part of your code, as I expect the problem to be there. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
On Sun, 2007-06-10 at 14:50 -0500, Roy W wrote: Here is the code: index.html html body form action=test.php method=post Your name: input type=text name=YourNameBR Cost of a lunch: input type=text name=CostOfLunchBR Days Buying Lunch: input type=text name=DaysBuyingLunchBR input type=submit /form /body /html index.php ? $Today = date(1 F d, Y); ? html body Today's Date: ? print(h3$Today/h3\n); print($YourName, you will be out ); print($CostOfLunch * $DaysBuyingLunch); print( dollars this week.BR\n); ? /body /html Returns: Today's Date: 1 June 10, 2007 , you will be out 0 dollars this week. You are relying on a deprecated and dangerous feature called register_globals. It is now disabled by default. You should instead use the following code: index.php ? $Today = date(1 F d, Y); ? html body Today's Date: ? echo h3$Today/h3\n; echo $_POST['YourName']., you will be out ); echo $_POST['CostOfLunch'] * $_POST['DaysBuyingLunch'] ); echo dollars this week.br /\n ); ? /body /html Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
On Sun, June 10, 2007 9:06 am, Roy W wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? Yes, lots. Usually right after an upgrade to PHP version that turned OFF register_globals by default. Fix your script to not rely on register_globals. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php