[PHP] Redirect Problems w/netscape

2001-07-20 Thread Chris Francy


Hi,

I have a calendar script which I wrote with the following section of code.


if ($HTTP_POST_VARS["ACTION"]=="DELETE" &&
 $HTTP_POST_VARS["MsgId"]!="" &&
 ereg("^([0-9])+$",$HTTP_POST_VARS["MsgId"]) ) {

$sqltxt1="delete from CalendarData where ID='".
   $HTTP_POST_VARS["MsgId"]."'";
$result1=mysql_query($sqltxt1,$conn_id)
  or die ("Unable to execute query - $sqltxt1");

header ("Location: $SCRIPT_NAME?OrgID=$OrgID&CalID=$CalID&".
 "year=$year&month=$month&day=$day");
}


The code gets called by from a form to delete a event from the calendar.

The problem is this.  In netscape 4.7 (Windows & Linux) after I click the 
delete button on the form I get the error  "The document contained no 
data"  but the event is deleted from the calendar.

What has me really confused is that it my script works great in IE4,IE5 and 
Lynx. (I haven't tried anything else)

Also if I change the code as follows it works on netscape but it goes the 
month view of the calendar instead of the day view.  Which isn't what I want.


header ("Location: $SCRIPT_NAME?OrgID=$OrgID&CalID=$CalID&".
 "year=$year&month=$month");


The url for accessing the document is
http://myhost/webpost/editcalendar.php?OrgID=ESD189&CalID=Events&year=2001&month=07&day=3

If I change my code to

echo "Location: $SCRIPT_NAME?OrgID=$OrgID&CalID=$CalID&".
 "year=$year&month=$month";


I get a web page with the following line.


webpost/editcalendar.php?OrgID=ESD189&CalID=Events&year=2001&month=07&day=3


Obviously since this is working in IE my code isn't completely screwed 
up.  So I am wondering if anyone has seen this behavior?  Am I breaking a 
length barrier that netscape is enforcing?

I have tried this same code on apache 1.3.12 with php 4.02 & apache 1.3.19 
with php 4.06 both with the same results.

Any help would be great.

Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Chris Francy
Hello all,

I am hoping someone can point me in the right direction to resolving an odd 
bug.  I tried searching the bugs database and groups, but I can't think of 
the terms to use while searching for my problem that the search system will 
accept.

I have a script like the below, copied from the crypt manual page
---

---

On my main web server, which is running php 4.3.10 with apache this script 
produces the following when I view the page on the web
---
 string(13) "$1Hat1hn6A1pw"
---

When I run the script from the command line [php test.php] on the exact same 
server I get
---
string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
---

I have also occasionaly seen some odd behavior where strings with dollar 
symbols $ in them won't print out correctly, but they have never seen that 
important..  Does anyone have any guesses, or hints about what the next step 
is to search for what is causing this odd behavior?  Any suggestions about a 
better place to ask?

Thanks for any help

Chris Francy
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php