Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 01-16-2003, 08:23 PM   #16 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
Quote:
Originally posted by trevor

$password=$Array[password];
$username=$Array[username];
is that part right?
trevor is offline   Reply With Quote
Old 01-16-2003, 08:42 PM   #17 (permalink)
anon
Guest
 
Posts: n/a
are you trying to declare an array or what are you trying to do?!?!


EDIT: An array can be declared like:

$blah= Array(
blah => asd
,blah => asd
,blah => asd
);
  Reply With Quote
Old 01-16-2003, 08:50 PM   #18 (permalink)
Ilya020
Techno Rat
 
Ilya020's Avatar
 
Join Date: Jan 2003
Location: San Diego
Posts: 559
Ilya020 is on a distinguished road
Send a message via AIM to Ilya020
Quote:
Originally posted by Vlad902
are you trying to declare an array or what are you trying to do?!?!


EDIT: An array can be declared like:

$blah= Array(
blah => asd
,blah => asd
,blah => asd
);
to print it, the Array must be called.
__________________
> SELECT * FROM users WHERE clue > 0
0 rows returned
Ilya020 is offline   Reply With Quote
Old 01-16-2003, 09:00 PM   #19 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
what I am trying to do is in index.php (login page) the user enters their username and password into Array[username] and Array[password] using a standard html form.
from there they post it to login.php. (see my above code for index and login).
I am trying to set $username and $password to the data entered into the form.

does that make sense, or am I so far off that I am totally wasting my time.

thanks

Trevor
trevor is offline   Reply With Quote
Old 01-16-2003, 09:39 PM   #20 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
Quote:
Originally posted by trevor
is that part right?
yes trevor, that is right. you are putting the array variables into non-array variables so you can easily use them in the query.

are you sure you connect script is connecting?
sde is offline   Reply With Quote
Old 01-16-2003, 09:57 PM   #21 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
connect.php works great.

I have it set to it outputs connection successful on the top of the screen whenever it connects. it connects fine on the index.php and register.php (or so it says)

does it matter if i write it:

$Array[username];
or
$Array["username"];

I've tried it both ways and it didn't work.

the other thought I had was that it was logging in and I was getting the failed.php error from my main.php page. So I made main.php show failed2.php, but it shows failed.php still so I know it is login.php

damn this is starting to annoy me.

i have set up 2 accounts on the table "users"

L: bob P: 123
and
L: fred P: 123

try it for yourself (it could be my comp):
http://209.167.16.165/ao/index.php

(if I get disconnected that ip is useless)

thanks for everyones help so far.

-Trevor
trevor is offline   Reply With Quote
Old 01-17-2003, 06:28 AM   #22 (permalink)
Ilya020
Techno Rat
 
Ilya020's Avatar
 
Join Date: Jan 2003
Location: San Diego
Posts: 559
Ilya020 is on a distinguished road
Send a message via AIM to Ilya020
Quote:
Originally posted by trevor
connect.php works great.

I have it set to it outputs connection successful on the top of the screen whenever it connects. it connects fine on the index.php and register.php (or so it says)

does it matter if i write it:

$Array[username];
or
$Array["username"];

I've tried it both ways and it didn't work.

the other thought I had was that it was logging in and I was getting the failed.php error from my main.php page. So I made main.php show failed2.php, but it shows failed.php still so I know it is login.php

damn this is starting to annoy me.

i have set up 2 accounts on the table "users"

L: bob P: 123
and
L: fred P: 123

try it for yourself (it could be my comp):
http://209.167.16.165/ao/index.php

(if I get disconnected that ip is useless)

thanks for everyones help so far.

-Trevor
Sorry but the link doesnt work for me...


Ilya
__________________
> SELECT * FROM users WHERE clue > 0
0 rows returned
Ilya020 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
running a script at designated time tzarin PHP 5 05-12-2004 07:11 PM
JS Script question M3GAPL3X HTML, XML, Javascript, AJAX 5 04-20-2003 09:21 PM
narrowed down login trouble trevor PHP 7 01-18-2003 05:50 PM


All times are GMT -8. The time now is 11:55 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting