Graphix 68 ---

Let me first tell you: NEVER give a password through a SESSION UNCODED. I also recommend you simply do the following:

- If a user has logged in (correctly) then a variable named $_SESSION is set "true" or "yes" and if it is needed in the rest of the pages, you also set a $_SESSION or a $_SESSION. If you still want to give a password through, please use md5(), sha1() or another encrypt function.

And at each page you do the following:

<?php
session_start();
?>
... other HTML
<body>
<?php
if ($_SESSION['auth'] == "yes") {
//
// You show the members only page
//
echo "You are now logged in and are able to see this!!!";
} else {
//
// You either show the login page or a link to the login page,
// example:
echo 'You are not logged in, please go to the <a href="login.php">login page</a>.';
}
?>
</body>
// Other HTML....

You can also put some javascript in it that redirects the user directly to the login page.

~G

Graphix 68 ---

I think i found error:

echo '<br /><select name="quantity">';
echo'<option>1</option>';
echo'<option>2</option>';
echo'<option>3</option>';
echo'<option>4</option>';
echo'[B][I]</select>[/I][/B]<br />';
Graphix 68 ---

First of all: use code tags?

I dont quite understand the problem, i dont know alot of asp (your form-handler is a .asp file) or something but you want to pass down information through a form to a form-handlers i assume.

First of all, there is NO url-output if you use the POST-method, only the GET-method passes information through the url.

You should also make the following line:

echo "<form action=http://www.romancart.com/cart.asp method=post>\n";

into

echo "<form action=\"http://www.romancart.com/cart.asp\" method=\"post\">\n";

And also change

echo'<input type= hidden name=returnurl value="http://217.146.126.103/passenger.php">';

into

echo "<input type=\"hidden\" name=\"returnurl\" value=\"http://217.146.126.103/passenger.php\">";

Hope this helps,

~Graphix

Graphix 68 ---

I dont quite know what you mean with "auto-increment", do you mean the filename (e.g. the first user has unknown1.jpg and the second unknown2.jpg????)? Anyway, you can set a default value for a column by using DEFAULT in sql:

ALTER TABLE users ADD image DEFAULT 'unknown.jpg'

or,

ALTER TABLE users ALTER image SET DEFAULT 'unknown.jpg'
Graphix 68 ---

If your problem hasent been solved, I am personally very satisfied with XAMPP as it includes apache, mysql, filezilla and mercury in one. I haven't had any problems with it and you just place your files in the htdocs folder. You can download it at http://www.apachefriends.org/en/xampp.html.

You can place your files in the htdocs folder, for example:

The directory you store your files:
C:/xampp/htdocs/myphp/*

You can acces it by opening a browser and use as url:
http://localhost/myphp/*

Any questions?

~Graphix

Graphix 68 ---
$query = "SELECT * FROM $table WHERE Suburb='$suburb'";
$result = mysql_query($query);

But you will need to check wether the actual name of the column is Suburb and not suburb.