Re: Re: ASP to PHP

From: Date: Fri, 09 Sep 2005 16:25:28 +0000
Subject: Re: Re: ASP to PHP
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-26309@lists.php.net to get a copy of this message
Please reply to the list. I still don't understand the problem. Anyway, you have this in your ASP file: <input type="hidden" name="_VIEWSTATE" value="1"/> When you submit that form to the PHP file, you can retrieve the value with $_GET('_VIEWSTATE') or $_POST('_VIEWSTATE') When you "go back" to the ASP page, what do you mean? Clicking "back" in the browser, following a link, or submitting a form? Clicking "back" in the browser? ? following a link put variable in the querystring and retrieve it or submitting a form? send the variable back as a form input Yes, you were right on my logic. I fixed that but I went back to my original problem. Here is the issue. In the asp code an input type hidden variable is set as name="_VIEWSTATE" and the value is what in PHP is called as $_REQUEST["ESAuthCookie"]. Now the problem is that when I go from the asp page to the php page this value is reset in php so when I go back to the asp page and back to the php page I get an internal error because the _VIEWSTATE var is not the same in php as it is in asp. So how can I go from asp page to the php page and maintain the same variable's value? Thanks for your help it is really appreciate it. On 9/9/05, Mark Rees <mrees@itsagoodprice.com> wrote: So I have I this problem. I have asp page that has a link to a PHP page, when I click on the link I get the PHP with no problems but if I click back to the asp page and click on the PHP page I get a HTTP 500 Internal server error. If I hit the refresh button I get the php page again. The PHP page is a form when the form is submitted after the fresh reload an error "the directory name is invalid". Can anyone help me? --------------------- I suspect there is a problem with the logic. It sounds like the PHP page is not expecting to be called twice from the same link. More details are required, perhaps including some code, for a better answer. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#26309) next »