php-windows Digest 30 Jun 2001 13:59:03 -0000 Issue 634

Topics (messages 8106 through 8114):

Form processing in PHP
        8106 by: Mariusz Topczewski
        8114 by: Frank M. Kromann

PHP 4.0.6/Win98/Sessions
        8107 by: Paul Smith

mail()
        8108 by: samsom, debra

Re: Problem with crypt()
        8109 by: Lublovary Noel

query mysql from php drop down list
        8110 by: Pete Kuczynski

Re: 500 error
        8111 by: Phil Driscoll

Re: Exec command still doesn't on Win2K and IIS
        8112 by: choiks

Re: php scripts only work when connected to the internet.
        8113 by: Hugh Bothwell

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]


----------------------------------------------------------------------


Hi,

I have a little problem with processing a FORM's SELECT MULTIPLE field.
I mark several position in  form, but in result file I have only last
selected.
Here is a part of file:

<FORM METHOD=post NAME="WybPosForm" ACTION="slownik_adresowy.php">
<SELECT MULTIPLE NAME=miasta_bad SIZE=25>
<OPTION VALUE=1>BIAŁYSTOK                     </OPTION>
<OPTION VALUE=14078>ALEKSANDROWO                  </OPTION>
<OPTION VALUE=15>ALEKSANDRÓW KUJAWSKI          </OPTION>
<OPTION VALUE=17>ANDRYJANKI                    </OPTION>
<OPTION VALUE=19>ANDRZEJEWO                    </OPTION>
<OPTION VALUE=20>AUGUSTOWO                     </OPTION>
....
</SELECT>
<INPUT TYPE="RESET"><INPUT type=submit value="OK">
</FORM>

I check BIAŁYSTOK, ANDRYJANKI and AUGUSTOWO but in variable
$miasta_bad I have only value 20

How process this form?

Best regards,
Mariusz Topczewski









Hi,

If you are changing the name of the select item from name=miasta_bad to 
name="miasta_bad[]" php will return all selected values in an array.

- Frank

> Hi,
> 
> I have a little problem with processing a FORM's SELECT MULTIPLE field.
> I mark several position in  form, but in result file I have only last
> selected.
> Here is a part of file:
> 
> <FORM METHOD=post NAME="WybPosForm" ACTION="slownik_adresowy.php">
> <SELECT MULTIPLE NAME=miasta_bad SIZE=25>
> <OPTION VALUE=1>BIAŁYSTOK                     </OPTION>
> <OPTION VALUE=14078>ALEKSANDROWO                  </OPTION>
> <OPTION VALUE=15>ALEKSANDRÓW KUJAWSKI          </OPTION>
> <OPTION VALUE=17>ANDRYJANKI                    </OPTION>
> <OPTION VALUE=19>ANDRZEJEWO                    </OPTION>
> <OPTION VALUE=20>AUGUSTOWO                     </OPTION>
> ....
> </SELECT>
> <INPUT TYPE="RESET"><INPUT type=submit value="OK">
> </FORM>
> 
> I check BIAŁYSTOK, ANDRYJANKI and AUGUSTOWO but in variable
> $miasta_bad I have only value 20
> 
> How process this form?
> 
> Best regards,
> Mariusz Topczewski
> 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 







Hi,
        I'll tell you about my setup first. I'm using PWS on Win98 and PHP 4.0.6 
so I can test my website before I publish it. When I was using PHP 4.0.5 
everything worked great. Then I upgraded to 4.0.6 the day it came out 
and all of a sudden sessions don't work anymore! I look in my sessions 
folder and all the information is in the file but for some reason PHP 
can't read it. So then I downgrade back to 4.0.5 and, changing nothing 
else, it all works again! Has this happened to anyone else? Is this a 
problem with my settings? I kept my old php.ini file when I upgraded to 
4.0.6, should I have done that? Please help.

Thanks,
Paul Smith





Question:   Where does the 'Sent' Date and Time come from when sending mail
using the php mail function?

Any mail I receive from my php application has the incorrect date/time in
the "Sent" section of Outlook.   I have checked my mail server, the apache
server and my PC, they all have the correct settings.

I will be on holidays for a week so any responses sent directory to me
([EMAIL PROTECTED]) would be appreciated.

Debra Samsom
Bristol Aerospace Ltd.
(204) 775-8331 3402
[EMAIL PROTECTED] 





hello,

crypt() is currently only supported by UNIX like OS
there are possibilities to run crypt using a perl int. or
using this lib
http://www.penguin.cz/~martinmv/libcrypt-win32.tar.bz2

I never tried it out but some people says that it works fine
check the manual for setup


--


""Alexandre Meslin"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm using PHP version 4.0.7-dev from www.php4win.de and when I try to use
crypt() function I receive this error message:
>
> Warning: crypt() is not supported in this PHP build in D:\Meus
documentos\CURSOS\Programacao de
Computadores\WebII\PHP\Exemplos_PHP\crypt.php on line 10
>
> Do you know how to fix this?
>
> Thanks in advanced
>
> Meslin
>
> --
>
> _______________________________________________
> Get your free email from http://mymail.altavista.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi,
I use a html frop down list to choose an item to be placed into a cell.
This causes much work when updating the site as the html code needs
updating:

Device:&nbsp;</td>
        <td width="25%"><select size="1" name="device" tabindex="3">
            <option selected>some device</option>
            <option>AOC Spectrum 4V CRT</option>
            <option>Arlan 630 antenna</option>
            <option>AT&amp;T CRT</option>
            <option>AT&amp;T CRT 0131</option>
            <option>AT&amp;T CRT 314</option>
            <option>AT&amp;T CRT 324</option>
            <option>AT&amp;T CRT 329D</option>
            <option>AT&amp;T CRT 334</option>
            <option>AT&amp;T CRT 7134</option>

I would like to have my php script instead query a table in my database
for this information.

Here is the partial update query script in use:


while($row = mysql_fetch_object($result1)) {
   
    echo "<td align=right>Site ID:  <input type=text name='site_id'
value='$row->site_id'></td><tr>";
    echo "<td align=right>Hostname:  <input type=text name='hostname'
value='$row->hostname'></td><tr>";
    echo "<td align=right>Device:  <input type=text name='device'
value='$row->device'></td><tr>";

My question is, how can I change the last field above, the device field,
if I wan't it to work as a lookup table and replace the html table
aboce. So it will work like a list box, and allow you to choose from 30
diferent items.

Thanks for any insight.

Pete




On Friday 29 June 2001 21:56, Jonathan Marriott wrote:
> were do u werk phil?
In my attic in sunny Leeds, UK.
-- 
Phil Driscoll




[EMAIL PROTECTED] (BAMHA Mostafa Ftmms) wrote in
6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02:">news:6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02: 

> The program i tested is very simple. This is the php code
><?
> echo "test ...";
> exec("dir c:\\");
> ?>
> ##################

you can't find dir.exe, dir.com, dir.bat in path of your computer.
"dir" is a command of cmd.exe or command.com

if your system is a NT compatible,
   then source code is exec("cmd /c dir c:\\' );
but this result is not displayed.
exec() parameter must exist.

rewriten source

exec( "cmd /c dir c:\\", $b);
for ( $i=0;$i<sizeof($b);$i++ ) {
  echo htmlspecialchars(trim($b[$i]))."<br>";
}





""Bryan"" <[EMAIL PROTECTED]> wrote in message
9h94q7$jg2$[EMAIL PROTECTED]">news:9h94q7$jg2$[EMAIL PROTECTED]...
> Thanks Hugh,
> I have been trying http://mylaptop/whatever.php where mylaptop is the
> localhost but it won't process when the laptop is standalone and not
> connected to the network or dialled in to the web. When I am connected,
all
> php scripts work fine.

I have experienced something similar running PHP with Apache on WinME; if I
dial up then disconnect, then request a page on localhost, it tries to
connect.  Because I have the dialler set to prompt every time, it brings up
the dialler, I click 'cancel'... and it gets me the page.

I'm really not sure what I need to change; somehow I need to tell it that
localhost doesn't require a connection.  For now, it's a minor nuisance, so
I just ignore it.  But if anyone has a more permanent solution, I'd be glad
to hear it.

As one other person has noted, calling the page as http://127.0.0.1/page.php
works without doing this; I have localhost set in my Apache config, but it
seems to want to ask the DNS anyway??




Reply via email to