php-windows Digest 2 Dec 2002 16:09:42 -0000 Issue 1467
Topics (messages 17234 through 17237):
seeking PHPFI to PHP3 converter binary
17234 by: Oliver Story
Problem retrieving form elements value on php
17235 by: Krushna Kumar
17236 by: Giannis Vrentzos
Problem with summary file informations
17237 by: Enrico
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Does anyone out there have a compiled windows binary convertor.exe to
convert PHP/FI scripts to PHP3? The archived binaries (on php.net and
elsewhere) don't include it and two hours of web searching haven't come up
with one.
Thanks,
oliver dot story at anu dot edu dot au
--- End Message ---
--- Begin Message ---
Dear All,
I have a HTML form and take user name and password, on submitting I try to validate
the value on the next file, but the input form element values are not retrieved on the
following file, I have provided the code I have written, Kindly help me trace the
error.
Php version used - 4.2.3 and o/s windows NT4.0
Step 1
I have a HTML form with the following code
file - adminlogin.php
========================================================================================
<form name="frmadminlogin" method="post" action="admin.php">
<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#fde9ac">
<div align="center"><font color="#990000" size="3"><b>ADMIN
LOGIN</b></font></div>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFD7">
<td width="10"> </td>
<td> </td>
<td> </td>
</tr>
<tr bgcolor="#FFFFD7">
<td width="10"> </td>
<td><font color="#000000">LOGIN</font></td>
<td><font color="#000000">
<input type="text" name="txtuser">
</font></td>
</tr>
<tr bgcolor="#FFFFD7">
<td> </td>
<td><font color="#000000">PASSWORD</font></td>
<td><font color="#000000">
<input type="password" name="txtpassword">
</font></td>
</tr>
<tr bgcolor="#FFFFD7">
<td colspan="3"> </td>
</tr>
<tr bgcolor="#FFFFD7">
<td colspan="3">
<div align="center"><font color="#000000"></font><font
color="#000000">
<input type="submit" name="submit" value="Login">
<input type="reset" name="Reset" value="Reset">
</font></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
======================================================================================================
step 2 : I am trying to retrieve the values from the form in php using the code and
check whether username and password are correct
file name - admin.php
======================================================================================================
if (($txtuser=='user') && ($txtpassword=='password'))
{
//echo '<br>login success';
}
else
{
//echo 'login failure';
header('adminlogin.php?login=F');
}
======================================================================================================
Error : I get the following error when I submit the step 1 form and while trying to
retrieve the form element(input) value on the second form for validation. kindly help
======================================================================================================
Notice: Undefined variable: txtuser in E:\projects\jkfiles\admin.php on line 2
======================================================================================================
Regards
Krushna
--- End Message ---
--- Begin Message ---
Krushna Kumar wrote:
> step 2 : I am trying to retrieve the values from the form in php
using the code and check whether username and password are correct
>
> file name - admin.php
>
======================================================================================================
$txtuser=$_POST{'txtuser'];
$txtpassword=$_POST['txtpassword'];
> if (($txtuser=='user') && ($txtpassword=='password'))
> {
> //echo '<br>login success';
> }
> else
> {
> //echo 'login failure';
> header('adminlogin.php?login=F');
> }
> Regards
> Krushna
For more info chech the manual for predefined variables.
Giannis
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to extract some summary file informations with IIS.
I've used a COM object, the Shell.Application, with the method GetDetailsOf.
Under asp the script is ok but with php the values of the informations are
null (empty).
The code is this, i want to print some summary information on the text.txt
file (i've insert some summary values on the properties file system, like
Author, Copyright, etc...):
$filesummary = new COM("Shell.Application") or die("COM Shell Application
Problem.");
$folder= $filesummary->Namespace (0);
$fileinfo= $folder->ParseName("C:\\test.txt");
for ($i=0; $i<33; $i++) {
print $i.") ".$folder->GetDetailsOf("",$i).":
".$folder->GetDetailsOf($fileinfo,$i)."<br>";
}
When i run this script only the first seven values is full, all the others
are null.
Regards
Enrico Zimuel
--- End Message ---