On Tue, Apr 1, 2008 at 7:22 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> One of the projects I inherited recently contains the following code
> which is used basically to store the record ID and editstate in the
> URL's querystring. When I first saw it, I was scratching my head
> saying, why would anyone think they needed to do it this way?
>
>
> <script language="javascript">
> function jfunc(arg){
> window.location='thissamedocument.php?id='+arg+'&edit=false';
> }
> </script>
>
> and then throughout the page this script is called by echoing the
> following:
>
> echo "<SCRIPT LANGUAGE='JavaScript'>\n";
> echo "javascript: jfunc(" . $whateverID . ")\n";
> echo "</script>\n";
>
> Would love to hear any and all comments on the above vis a vis this
> discussion.
>
My guess is the programmer didn't understand the concept of a 302 header.
-John C.
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php