This topic is locked

Trying to login using Dropdown Box

3/23/2009 12:15:19
PHPRunner General questions
S
swanside author

Hello.

I am trying to make a dropdown box for the login screen.

My Tables are login and the field is Engineer_Name,

So in visual editor I have found and edited the login box and put in this code in the HTML view

{$event login_Engineer_Name}


I then double click on the new yello box which it titled "login_Engineer_Name"

and enter this code.

global $conn;

$strSQL = "select Engineer_Name from login";

$rs = db_query($strSQL,$conn);

$str = "";

$str.="<select name=Engineer_Name>";
while ($data = db_fetch_array($rs))

$str.="<option value=".$data["Engineer_Name"].">".$data["Engineer_Name"]."</option>";
$str.="</select>";

echo $str;


When I build my project, I can select my name from the dropdown box, but when I enter my password it tells me its an Invalid Login?
Any ideas please?

Thanks

Paul.

Sergey Kornilov admin 3/23/2009

Try to change the following:

$str.="<select name=username>";

S
swanside author 3/23/2009

Try to change the following:


Thanks for the reply.

I tried that, but it still gives me an Invalid Login?

Sergey Kornilov admin 3/23/2009

I recommend to post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.

S
swanside author 3/25/2009

Thanks
Email sent
Paul.