SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: problem with Safari and my CMS
-
Apr 29, 2006, 10:03 #1
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
problem with Safari and my CMS
My page editing function (using Editize latest version) works fine in IE6 and Firefox, but not in Safari. I think the problem may be that Safari does not recognize the variable $_SERVER['PHP_SELF'] in the form action:
PHP Code:<form name="edit_page" method="post" action="<?php $_SERVER['PHP_SELF']; ?>" >
My markup is all validated by the W3C checker.
Here are two raw access log file entries that may say something:
72.70.243.69 - - [29/Apr/2006:11:51:51 -0400]
"POST / HTTP/1.1" 200 6365 "http://www.clickbasics.com/pages/edi....php?pg_id=184"
"Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko)
Safari/417.8"
72.70.243.69 - - [29/Apr/2006:11:51:52 -0400] "GET /favicon.ico HTTP/1.1" 404
4839 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko)
Safari/417.8"
(Off topic, any suggestions for a program that will read a raw access .txt file?)
-
Apr 29, 2006, 10:10 #2
- Join Date
- Jul 2005
- Location
- Orlando
- Posts
- 634
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The browser never sees the PHP code, so one browser doesn't interpret your PHP code any differently than another. Now if your PHP is producing invalid HTML, one browser may read that differently than another.
If you load your page in any browser, what does that <form> tag look like in its html form? Can you copy and paste that here?
-
Apr 29, 2006, 10:27 #3
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well I'll be.....
Here's how the form tag looks in the source view of IE6
HTML Code:<form name="edit_page" method="post" action="" >
-
Apr 29, 2006, 10:58 #4
- Join Date
- Jul 2005
- Location
- Orlando
- Posts
- 634
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by paulcj2
-
Apr 29, 2006, 12:49 #5
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks. Know of a work around?
-
Apr 29, 2006, 12:57 #6
- Join Date
- Dec 2004
- Location
- Cornwall, UK
- Posts
- 594
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
action="<?php echo $_SERVER['PHP_SELF']; ?>"
-
Apr 29, 2006, 13:15 #7
- Join Date
- Nov 2003
- Location
- Southampton, UK
- Posts
- 345
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Covered already, but yep, IE will send a form to itself if no action is specified, but not all browsers do.
-
Apr 29, 2006, 15:38 #8
- Join Date
- Jul 2005
- Location
- Orlando
- Posts
- 634
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by trib4lmaniac
-
Apr 30, 2006, 10:29 #9
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks
Bookmarks