Re: [PHP] funny output
Chris Shiflett wrote: --- Ryan A [EMAIL PROTECTED] wrote: So how do i get my scripts working again? the authentication part was working perfectly but now it just kicks me back to the login page... plus it looks like I am unable to set sessions properly, and i suspect thats why i am getting kicked back to the login page. You're probably right. This is a wild guess, but I bet register_globals is disabled on your new host. Check the archives for lots of good information about what this means, what you need to do, etc. This question comes up weekly, so there should be plenty of information. Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ It's actually ENabled, from the link that he sent us. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
Hi, The first thing I checked was register_globals.they are on. (http://www.bestwebhosters.com/phpinfo.php) Any other ideas/suggestions? Please help as I am hitting a total blank trying to find out where the problem is. Thanks, -Ryan - Original Message - From: Comex [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 8:22 AM Subject: Re: [PHP] funny output Chris Shiflett wrote: --- Ryan A [EMAIL PROTECTED] wrote: So how do i get my scripts working again? the authentication part was working perfectly but now it just kicks me back to the login page... plus it looks like I am unable to set sessions properly, and i suspect thats why i am getting kicked back to the login page. You're probably right. This is a wild guess, but I bet register_globals is disabled on your new host. Check the archives for lots of good information about what this means, what you need to do, etc. This question comes up weekly, so there should be plenty of information. Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ It's actually ENabled, from the link that he sent us. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
* Thus wrote Ryan A ([EMAIL PROTECTED]): Hi everyone, I am having some funny output and funny things happening to my scripts since I changed hosts... my login scripts were working fine before but now they dont seem to work...also there is a hidden text box appearing in the code that i didnt write...this is it: input type=hidden name=PHPSESSID value=ad2e5a31727b2b4eb28b2d0c2d6ee67e / The login script is looking in the $_POST var correct? Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
Hi, thanks for replying. No, its looking for get, and globals is on. This is my code: *Start code* ? session_start(); header(Cache-control: private); //IE 6 Fix require_once(configbwh.php); $type=$_GET[type]; $_SESSION['type'] = $type; if(!isset($type)) { include(my.top.php); print(ERROR: 69723. Please contact support); include(my.bottom.php); exit; } if(session_is_registered('my_user')){} else{ $_SESSION['id'] = $id; header(Location: my.login.php); exit; } $result = count ($id); if($result1 || $result5) {include(my.top.php); Print(Error: Plans not saved.brYou have not either not chosen a plan to add to your MyList account bror you have tried to add more than 5 plans at a time to your MyList account.brPlease press your back button to correct the problem.); include(my.bottom.php); exit; } $connected=mysql_connect ($hostt, $userr, $passs) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ($db); $my_user=$_SESSION['my_user']; $my_ccno=$_SESSION['my_ccno']; /* the below lines take the string (nname) from between the [] of the id[] and the the value of the id[] (eg id[]=23 where 23 is the value) then inserts it into the db thanks to John Holmes. */ foreach($id as $nname = $pppno) { $q=insert into mylist_slave values('','$pppno','$nname','$type','$my_user',$my_ccno); if(!($rs = mysql_query($q))) { echo Query failed for ID: $r; exit; } } include(my.top.php); print(Data has been successfully entered.); include(my.bottom.php); exit; ? End Code* This was working fineI just cant understand it. Kindly reply, -Ryan. - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 4:05 PM Subject: Re: [PHP] funny output * Thus wrote Ryan A ([EMAIL PROTECTED]): Hi everyone, I am having some funny output and funny things happening to my scripts since I changed hosts... my login scripts were working fine before but now they dont seem to work...also there is a hidden text box appearing in the code that i didnt write...this is it: input type=hidden name=PHPSESSID value=ad2e5a31727b2b4eb28b2d0c2d6ee67e / The login script is looking in the $_POST var correct? Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] funny output
Hi everyone, I am having some funny output and funny things happening to my scripts since I changed hosts... my login scripts were working fine before but now they dont seem to work...also there is a hidden text box appearing in the code that i didnt write...this is it: input type=hidden name=PHPSESSID value=ad2e5a31727b2b4eb28b2d0c2d6ee67e / Also notice that it ends with a slash that I didnt have anything to do with. Any ideas on why this is happening? you can have a look at the php info for this site at: http://bestwebhosters.com/phpinfo.php Kindly reply, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
--- Ryan A [EMAIL PROTECTED] wrote: I am having some funny output and funny things happening to my scripts since I changed hosts... ... there is a hidden text box appearing in the code that i didnt write...this is it: input type=hidden name=PHPSESSID value=ad2e5a31727b2b4eb28b2d0c2d6ee67e / Also notice that it ends with a slash that I didnt have anything to do with. Your new host has session.use_trans_sid enabled, and perhaps your old one did not. The slash at the end is XHTML compliant, which is how PHP tries to add code (in case you care about XHTML compliance). Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
Hey, Thanks for replying. So how do i get my scripts working again? the authentication part was working perfectly but now it just kicks me back to the login page... plus it looks like I am unable to set sessions properly, and i suspect thats why i am getting kicked back to the login page. Kindly reply, -Ryan - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Ryan A [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 2:44 AM Subject: Re: [PHP] funny output --- Ryan A [EMAIL PROTECTED] wrote: I am having some funny output and funny things happening to my scripts since I changed hosts... ... there is a hidden text box appearing in the code that i didnt write...this is it: input type=hidden name=PHPSESSID value=ad2e5a31727b2b4eb28b2d0c2d6ee67e / Also notice that it ends with a slash that I didnt have anything to do with. Your new host has session.use_trans_sid enabled, and perhaps your old one did not. The slash at the end is XHTML compliant, which is how PHP tries to add code (in case you care about XHTML compliance). Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] funny output
--- Ryan A [EMAIL PROTECTED] wrote: So how do i get my scripts working again? the authentication part was working perfectly but now it just kicks me back to the login page... plus it looks like I am unable to set sessions properly, and i suspect thats why i am getting kicked back to the login page. You're probably right. This is a wild guess, but I bet register_globals is disabled on your new host. Check the archives for lots of good information about what this means, what you need to do, etc. This question comes up weekly, so there should be plenty of information. Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php