Re: [PHP] Header Location redirection parameters fail to redirect
Hi, If the parameters are available at the url of mysite.com. Then the parameters should be available there in the page to echo. Instead of $_REQUEST try $_GET Try using this.. ?php echo h3mysite.com Homepage /h3 ; $lang=$_GET['lang']; $ctry=$_GET['ctry']; echo Country= .$ctry. br Language= .$lang; ? ...Deeps... --- Olav Drageset [EMAIL PROTECTED] wrote: I want url mysite.no to redirect to mysite.com with parameters lang=no and ctry=no, but the parameters do not follow the redirection. mysite.no/index.php is ? Header ('Location: http://mysite.com/index.php?lang=noctry=no' ) ; exit; ? mysite.com/index.php is ? echo h3mysite.com Homepage /h3 ; $lang = $_REQUEST['lang']; $ctry = $_REQUEST['ctry']; echo Country= $ctry br Language= $lang; ? When I browse mysite.no mysite.com homepage is shown with lang and ctry as blank When I browse mysite.com/index.php?lang=noctry=no parameters lang and ctry are set to no as I wish I have the server on my own laptop where I also do the browsing. I use PHP 4.2.2 I kindly got some answers yesterday that do not seem to solv the question so I have made myself more specific. Do anyone have a clue why the parameters are stripped from the redirection? (I am not very trained, but as far as I know the parameters should be redirected??!!) Thanks Olav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Password encryption and password retrieval
Hi, Thank you every one for responding to my mail and giving valuable comments and suggestions for it. Thanx, ..Deeps.. --- Deep [EMAIL PROTECTED] wrote: Hi evryone, I want to implement a site where i would like to encrypt the password of the users and store it into mysql database. My question is that , In case if the user has forgotten the password how can he retrieve the password(which is already encrypted and stored...the user should be able to get the decrypted password). Also which encryption method would you recommend. ie. md5,crypt, etc Thanx, ..Deeps.. Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Password encryption and password retrieval
Hi evryone, I want to implement a site where i would like to encrypt the password of the users and store it into mysql database. My question is that , In case if the user has forgotten the password how can he retrieve the password(which is already encrypted and stored...the user should be able to get the decrypted password). Also which encryption method would you recommend. ie. md5,crypt, etc Thanx, ..Deeps.. Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] payment gateways slightly OT
Hi, CCavenue is good. Also try 2checkout.com, but i wont reccomenrd that because their interface is not that good as ccavenue's. ..Deeps.. --- Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys, I just want to find out from you which payment gateways you use and what experiences good and bad have you had with them. I'm looking for a reliable payment gateway to handle credit card processing Apologies for the OT post thanks in advance -- Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if then else statement not working
Hi, Where are the dollar signs before seatnum, seat1 etc in the if condition. ..Deeps.. --- Anasta [EMAIL PROTECTED] wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { echo username; } else { echo 'empty'; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5, mySQL and Win XP. I NEED HELP
Hi, If you are using localhost, i dont think u need to specify the port number. Localhost would be enough. Also pls check the user privileges and all in the database. ..Deep.. --- Oscar Andersson [EMAIL PROTECTED] wrote: I have made a instal of the latest mySQL and PHP 5 on my computer. I have made the following changes to my php.ini file extension=php_mysql.dll extension_dir = c:\php\ and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windows to Now i try this in my php-file $con = mysql_connect(localhost:3306, buddy, bestbuddy); I cant connect to mySQL. I dont know what is wrong. mySQL listen to port 3306. I have tried with my IP to. I get this warning Warning: mysql_connect() [function.mysql-connect]: Too many open links (0) in myfilename.php. I hope for help Oscar Andersson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] users online
Hi, Try this. I am assuming that you have already fetched the name of the user who is online, either from the database or from session or whatever. I am assigning the variable $uname with that user online. I've used javascript to display the name in the textbox. Here goes the code. Simple.isn't it?? script language=JavaScript function enterMe(who) { document.frmpok.txtpok.value=who; } /script ? $uname=David; ? form name=frmpok action=# input type=button name=butpok value=Enter onclick=enterMe('? echo $uname;?'); input type=text name=txtpok value= /form --- Anasta [EMAIL PROTECTED] wrote: Hi, is this possible-- I need a user (already logged in) to click on a button and his username shown in a text box next to it. This is for a chat and they need to be seated similar to poker game where they sit-in/sit out. Any help apreciated ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sessions problems
Hi, When someone hit the logout page say logout.php. You can write the code in that page itself to update the record. Since the username of that particular user is stored as a session as long as the user closes the browser window. So in the logout page you can add like this. session_start(); include(connect.php); $uname=$_SESSION['username']; $sql = mysql_query(UPDATE users SET online='0' WHERE username='$uname'); //alternatively u can also delete that particular user from the database instead of updating the online status to '0'. I hope this might help you. Regards ..Deeps.. --- Anasta [EMAIL PROTECTED] wrote: Anyone know how to update a record on logout, heres what i am using for login, however there iare no variables for the logout page. ? session_start(); // Start Session include(connect.php); $username = $_POST['username']; $password = $_POST['password']; // Register some session variables session_register('username'); $_SESSION['username'] = $username; //sets user online to yes $sql = mysql_query(UPDATE users SET online='1' WHERE username='$username' AND password='$password'); if (($username == admin) And ($password == admin)) { header(location: login_admin.php); } else { header(location: login_success.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php