[nycphp-talk] IIS 5 and PHP with User Access
Keith Richardson
keithjr at war3.com
Wed Jul 16 10:57:47 EDT 2003
Say you click this form:
<form name="form1" method="post" action="admin.editcal.php">
<input type="hidden" name="method" value="edit">
<input type="hidden" name="calid" value="12">
<input type="submit" name="submit" value="Edit Calendar 12">
</form>
And in the top of the admin.editcal.php
if (empty($_POST['method']))
$method = "index";
else
$method = $_POST['method'];
switch ($method)
{
case "index":
// display code to show the list of calendars to edit
break;
case "edit":
// edits 1 calendar
break;
case "save":
// saves the calendar
break;
}
and it goes to the index page when i click the forms.
i changed it to accept not just the $_POST['method'] variable, but also
$method, and then had a link saying <a
href="admin.editcal.php?method=edit&calid=12">Edit Calendar 12</a> and it
would go into the edit form, but the form would not submit.
All of the origional code works right, if you do not go to an
authenticated page through IIS (right-click on page, properties, directory
access, edit, disallow anonymous, integrate NT authentication)
> Howdy:
>
> On Wed, Jul 16, 2003 at 10:46:21AM -0400, Keith Richardson wrote:
>> I've been having this problem forever on my browser. I am using Win2k
>> with IE 6.0 at work. When I log into a NT domain authenticated page
>> (say phpmyadmin) - forms do not submit correctly through the remainder
>> of my page. Even if it is a different site, my forms do not pass the
>> variables.
>
> Perhaps the scripts are coded to directly access variables, such as
> $foo, rather than $_POST['foo'] in expectation of register_globals being
> on?
>
> --Dan
>
> --
> FREE scripts that make web and database programming easier
> http://www.analysisandsolutions.com/software/
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
--
Keith Richardson
keithjr at war3.com
www.war3.com
More information about the talk
mailing list