And I noticed a part of your code that could be optimized.
1st.
$min_price = $_POST["min_price"];
$max_price = $_POST["max_price"];
etc.
= !YUCK!
extract($_POST) ; // easy simple way of taking everything from the $_POST array and automatically generates all the variables with their respective $_POST names. The downside is that it takes all the variables...
User Profile
Collapse
-
No ajaxrand. They're asking for a quick and easy way to store a username and password.
Bascially you need to ask for a username and password at checkout.
In your customers table, add those two fields
Create a quick <form> that asks for those two fields, then
Code:$userid = mysql_query("SELECT userid FROM customers where username='$username' and password = '$password'");
Leave a comment:
-
Ok.
Rule #1 when submitting forms with textarea's. Use <form method="POST">
method="GET" does not retain carriage returns i.e. 40 lines in textarea's.Leave a comment:
-
Header Redirect with Anchor Workaround
Here's a workaround that worked for me on a PC, Safari 3, FF 2, IE 7:
Basically, you need an intermediary redirect page with a urlencode'd
path. For example:
AnyPage.php:
$path = urlencode($_SER VER['PHP_SELF'] . "?arg1=a&arg2=b #anchor");
header("locatio n:redirect.php? returnpath=$pat h");
redirect.php:
header("locatio n:" . $_...
No activity results to display
Show More
Leave a comment: