php-windows Digest 21 Mar 2006 16:31:10 -0000 Issue 2917

Topics (messages 26773 through 26776):

Re: Two dynamic select lists
        26773 by: Manuel Lemos

PHP Compiling on WinXP
        26774 by: El Bekko

Getting windows username into php/mysql
        26775 by: Alex Blundell
        26776 by: David Collard

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 ---
Hello,

on 03/20/2006 09:52 AM Alf Stockton said the following:
> I am attempting to write an HTML/PHP that contains two select list and I
> don't have a problem with the select lists as such.
> What I need to do is only display in the 2nd list data that is pertinent
> to what was selected in the 1st list.
> Does anyone have an example of how to achieve this please?


This forms generation class comes with a plug-in that lets you implement
exactly what you want:

http://www.phpclasses.org/formsgeneration

Here are examples of the class in action:

http://www.phpclasses.org/browse/view/html/file/9879/name/test_linked_select_page.html

http://www.phpclasses.org/mirrors.html

It can also work dynamically and retrieve alternative groups of options
from a database using AJAX to avoid page reloading.

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Hey all,

I downloaded the Roadsend Compiler Studio for PHP to begin compiling some tools I made. Now, obviously, the HTML inputs don't work and that darned thing doesn't even think about converting them, so I was wondering... how do you read input froml a command prompt? And even more important maybe: how to create a window where it gets executed?

I know, alot of questions, but I really wanna know how to do it =)

-- El Bekko

--- End Message ---
--- Begin Message ---
HI, I have been searching the internet for days trying to find a way of 
getting the windows username (%username%) of the current logged on user and 
submitting it, along side some other information (entered into the form by 
the user), to a MysQl database. This will enable me to know who has 
submitted the form on my intranet.

I have quite a bit of php/mysql knowledge, and i know the windows variable 
is %username% (easy i know) i just dont know how to get the variable into an 
array so i can post it to mysql db


Any help would be great as im all out of place to look....

Thanks in advance



--- End Message ---
--- Begin Message --- I tried it using getenv('username') and it worked ok http://php.net/manual/en/function.getenv.php

Alex Blundell wrote:
HI, I have been searching the internet for days trying to find a way of getting the windows username (%username%) of the current logged on user and submitting it, along side some other information (entered into the form by the user), to a MysQl database. This will enable me to know who has submitted the form on my intranet.

I have quite a bit of php/mysql knowledge, and i know the windows variable is %username% (easy i know) i just dont know how to get the variable into an array so i can post it to mysql db


Any help would be great as im all out of place to look....

Thanks in advance




--- End Message ---

Reply via email to