Jump to content

Language Not Work In Login


masrawy

Recommended Posts

  • Replies 74
  • Created
  • Last Reply

You'll need to do some testing. Add some code to print out what the user types in. Also add some code to get a user from the database that you want to test with, and use that username to log in to test. When they print out you'll be able to compare them and see why they aren't equal.e.g.:

echo "<!--\n";echo 'submitted user name: ' . $_POST['username'] . "\n";echo 'submitted password: ' . $_POST['password'] . "\n";$result = mysql_query("SELECT * FROM users WHERE username='testuser'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){  echo 'database user name: ' . $row['username'] . "\n";  echo 'database password: ' . $row['password'] . "\n";}else  echo 'test user not found';echo "\n-->";

That code isn't going to work for you unless I happened to guess the names you use, but you'll need to change the $_POST values to be the correct names of the username and password form fields, you'll need to change the name of the users table in the database that you're checking, and you might need to change the field names to use the correct field names in the database. Also change the testuser username to a user that actually exists in your database. What that code will do is print out the submitted username and password, and also a username and password from the database that you choose. It will print them out inside of an HTML comment, so after you submit the page and get the error you see, then you can go to View->Source and look at the information that was printed. If you get a blank page also go to View->Source and look for an error message.

Link to comment
Share on other sites

i ragister with that name sirعمروpassword123456and this is the table of user hgi_memberالحقل النوع خالي إفتراضيmember_id int(11) نعم NULLmember_name varchar(255) نعم member_pass varchar(32) نعم member_mail varchar(255) نعم member_countery varchar(255) نعم member_city varchar(255) نعم member_mob varchar(255) نعم member_mob_avilble enum('0', '1') نعم 0member_contact varchar(255) نعم member_tel varchar(255) نعم member_mail_avilble enum('0', '1') نعم 0member_really_name varchar(255) نعم member_sex enum('0', '1') نعم 0member_birth_day date نعم 0000-00-00member_study int(11) نعم 0member_hoppy tinytext نعم NULLmember_online enum('0', '1') نعم 0member_time date نعم 0000-00-00member_last_time date نعم 0000-00-00member_year varchar(255) نعم member_type enum('0', '1') نعم 0member_active enum('0', '1') نعم 0member_active_mob enum('0', '1') نعم 0active_code_mail int(11) نعم 0active_code_mob int(11) نعم 0

Link to comment
Share on other sites

i ragister with that name sirعمروpassword123456and this is the table of user hgi_memberالحقل النوع خالي إفتراضيmember_id int(11) نعم NULLmember_name varchar(255) نعم member_pass varchar(32) نعم member_mail varchar(255) نعم member_countery varchar(255) نعم member_city varchar(255) نعم member_mob varchar(255) نعم member_mob_avilble enum('0', '1') نعم 0member_contact varchar(255) نعم member_tel varchar(255) نعم member_mail_avilble enum('0', '1') نعم 0member_really_name varchar(255) نعم member_sex enum('0', '1') نعم 0member_birth_day date نعم 0000-00-00member_study int(11) نعم 0member_hoppy tinytext نعم NULLmember_online enum('0', '1') نعم 0member_time date نعم 0000-00-00member_last_time date نعم 0000-00-00member_year varchar(255) نعم member_type enum('0', '1') نعم 0member_active enum('0', '1') نعم 0member_active_mob enum('0', '1') نعم 0active_code_mail int(11) نعم 0active_code_mob int(11) نعم 0

Link to comment
Share on other sites

i ragister with that name sirعمروpassword123456and this is the table of user hgi_memberالحقل النوع خالي إفتراضيmember_id int(11) نعم NULLmember_name varchar(255) نعم member_pass varchar(32) نعم member_mail varchar(255) نعم member_countery varchar(255) نعم member_city varchar(255) نعم member_mob varchar(255) نعم member_mob_avilble enum('0', '1') نعم 0member_contact varchar(255) نعم member_tel varchar(255) نعم member_mail_avilble enum('0', '1') نعم 0member_really_name varchar(255) نعم member_sex enum('0', '1') نعم 0member_birth_day date نعم 0000-00-00member_study int(11) نعم 0member_hoppy tinytext نعم NULLmember_online enum('0', '1') نعم 0member_time date نعم 0000-00-00member_last_time date نعم 0000-00-00member_year varchar(255) نعم member_type enum('0', '1') نعم 0member_active enum('0', '1') نعم 0member_active_mob enum('0', '1') نعم 0active_code_mail int(11) نعم 0active_code_mob int(11) نعم 0

Link to comment
Share on other sites

echo "<!--\n";echo 'submitted user name: ' . $_POST['عمرو'] . "\n";echo 'submitted password: ' . $_POST['123456'] . "\n";$result = mysql_query("SELECT * FROM users WHERE username='testuser'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){ echo 'database user name: ' . $row['عمرو'] . "\n"; echo 'database password: ' . $row['123456'] . "\n";}else echo 'test user not found';echo "\n-->";

Link to comment
Share on other sites

I can't write it complete because I don't know how your application works, you'll need to change the names. In this part:echo "<!--\n";echo 'submitted user name: ' . $_POST['username'] . "\n";echo 'submitted password: ' . $_POST['password'] . "\n";The "username" and "password" should match the HTML input names. If you have your login form like this:<input type="text" name="XXX"><input type="password" name="YYY">Then you need to change "username" above to "XXX" and "password" to "YYY". You'll need to look at your login form to see what those names actually are. Those lines of code are supposed to print what you try to log in as (print the username and password that was received from the HTML form).In this line:$result = mysql_query("SELECT * FROM users WHERE username='testuser'") or exit(mysql_error());You'll need to change the "users" table to match whatever your database table is called that holds users, and change "testuser" to match the actual user name that you're trying to log in with (I see the Arabic text you wrote, but I'm not sure if that's a username, I can't read Arabic). That line is supposed to get the user from the database that you're trying to log in with, so that we can print the username and password from the database.For these lines:if ($row = mysql_fetch_assoc($result)){ echo 'database user name: ' . $row['username'] . "\n"; echo 'database password: ' . $row['password'] . "\n";}else echo 'test user not found';echo "\n-->";You only need to change "username" to match the name of the username field in the database, and "password" is the name of the password field in the database.The point of all of this is so that you can enter a username and password to log in, and when you press the login button, it should print out the username and password you entered, plus the username and password from the database. If it's telling you the username or password is wrong, then you can look at what it prints to see why it's wrong.Assuming your HTML login fields are called "username" and "password", and your database table is called "users", and the database fields are also called "username" and "password", and the user you're trying to log in as is "عمرو", then the below code will work. If those names aren't correct, then you need to change them.Once you press the login button, make sure you go to View->Source in your browser to see what PHP prints.echo "<!--\n";echo 'submitted user name: ' . $_POST['username'] . "\n";echo 'submitted password: ' . $_POST['password'] . "\n";$result = mysql_query("SELECT * FROM users WHERE username='عمرو'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){echo 'database user name: ' . $row['username'] . "\n";echo 'database password: ' . $row['password'] . "\n";}elseecho 'test user not found';echo "\n-->";

Link to comment
Share on other sites

this is data base Database msTable structure for table daubel_askField Type Null Defaultask_id int(11) Yes NULLask_ask varchar(255) Yes ask_ans text Yes NULLTable structure for table hendawy_advField Type Null Defaultid int(10) Yes NULLfullname varchar(100) Yes NULLmobile varchar(100) Yes NULLemail varchar(100) Yes NULLtype int(11) Yes 0urlsite varchar(250) Yes NULLimg varchar(250) Yes NULLdays int(3) Yes 0body mediumtext Yes NULLactivate enum('0', '1') Yes 0fromdate varchar(100) Yes NULLwidth int(11) Yes 0height int(11) Yes 0Table structure for table hendawy_sms_gatewayField Type Null Defaultid int(10) Yes NULLfromsg varchar(100) Yes NULLaccount_name varchar(100) Yes NULLgateway_url varchar(100) Yes NULLuseraccount varchar(100) Yes NULLpassaccount varchar(100) Yes NULLadditional_value1 varchar(100) Yes NULLadditional_value2 varchar(100) Yes NULLsuccess_result varchar(100) Yes NULLfailed_result varchar(100) Yes NULLfullurl_send_ar varchar(250) Yes NULLfullurl_send_en varchar(250) Yes NULLfullurl_get varchar(250) Yes NULLactivate enum('0', '1') Yes 0Table structure for table hgi_adsField Type Null Defaultads_id int(11) Yes NULLads_cid int(11) Yes 0ads_uid int(11) Yes 0ads_title varchar(255) Yes ads_supj text Yes NULLads_countery varchar(255) Yes ads_file varchar(255) Yes ads_reply enum('0', '1') Yes 0ads_mzad enum('0', '1') Yes 0ads_start varchar(255) Yes ads_type_coin enum('0', '1') Yes 0ads_time date Yes 0000-00-00ads_last_time date Yes 0000-00-00ads_end_time date Yes 0000-00-00ads_close enum('0', '1') Yes 0ads_fixed enum('0', '1') Yes 0ads_active enum('0', '1') Yes 0ads_hits int(11) Yes 0ads_one_reply enum('0', '1') Yes 0ads_note text Yes NULLTable structure for table hgi_catField Type Null Defaultcat_id int(11) Yes NULLcat_sid int(11) Yes NULLcat_name varchar(255) Yes cat_areng int(11) Yes 0cat_close enum('0', '1') Yes 0cat_desc tinytext Yes NULLTable structure for table hgi_commentField Type Null Defaultcomment_id int(11) Yes NULLcomment_uid int(11) Yes 0comment_adsid int(11) Yes 0comment_supj text Yes NULLcomment_time date Yes 0000-00-00comment_timestamp int(11) Yes 0Table structure for table hgi_comment_forumField Type Null Defaultcomment_id_fourm int(11) Yes NULLcomment_uid_fourm int(11) Yes 0comment_fourmid int(11) Yes 0comment_supj_fourm text Yes NULLcomment_time_fourm date Yes 0000-00-00comment_timestamp int(11) Yes 0Table structure for table hgi_configField Type Null Defaultconfig_id int(11) Yes NULLconfig_name varchar(255) Yes config_pass varchar(32) Yes config_site_name varchar(255) Yes config_site_url varchar(255) Yes config_uploed varchar(255) Yes config_mail varchar(255) Yes config_condetion text Yes NULLconfig_what_mst3ml text Yes NULLconfig_link_mst3ml text Yes NULLconfig_media_mst3ml text Yes NULLconfig_art_ads text Yes NULLart_main text Yes NULLTable structure for table hgi_elctronic_forumField Type Null Defaultelctronic_forum_id int(11) Yes NULLelctronic_forum_uid int(11) Yes 0elctronic_forum_link varchar(255) Yes elctronic_forum_mail varchar(255) Yes elctronic_forum_desc varchar(255) Yes elctronic_forum_hpic varchar(255) Yes elctronic_forum_time date Yes 0000-00-00elctronic_forum_hits int(11) Yes 0Table structure for table hgi_elctronic_shopField Type Null Defaultshop_id int(11) Yes NULLshop_uid int(11) Yes 0shop_link varchar(255) Yes shop_mail varchar(255) Yes shop_desc varchar(255) Yes shop_hpic varchar(255) Yes shop_time date Yes 0000-00-00shop_hits int(11) Yes 0Table structure for table hgi_favoField Type Null Defaultfavo_id int(11) Yes NULLfavo_uid int(11) Yes 0favo_adsid int(11) Yes 0Table structure for table hgi_favo_forumField Type Null Defaultfavo_id_forum int(11) Yes NULLfavo_fid_forum int(11) Yes 0favo_uid_forum int(11) Yes 0Table structure for table hgi_fileField Type Null Defaultfile_id int(11) Yes NULLfile_uid int(11) Yes 0file_url varchar(255) Yes file_size varchar(255) Yes file_del_time date Yes 0000-00-00Table structure for table hgi_forumField Type Null Defaultforum_id int(11) Yes NULLforum_uid int(11) Yes 0forum_title varchar(255) Yes forum_type int(11) Yes 0forum_supj text Yes NULLforum_pic varchar(255) Yes forum_time date Yes 0000-00-00forum_last_time date Yes 0000-00-00forum_end_time date Yes 0000-00-00forum_active enum('0', '1') Yes 0forum_hits int(11) Yes 0forum_one_reply enum('0', '1') Yes 0forum_note text Yes NULLTable structure for table hgi_mailField Type Null Defaultmail_id int(11) Yes NULLmail_from_id int(11) Yes 0mail_to_id int(11) Yes 0mail_supj text Yes NULLmail_time int(11) Yes 0mail_active enum('0', '1') Yes 0mail_del enum('0', '1') Yes 0mail_del_out enum('0', '1') Yes 0Table structure for table hgi_memberField Type Null Defaultmember_id int(11) Yes NULLmember_name varchar(255) Yes member_pass varchar(32) Yes member_mail varchar(255) Yes member_countery varchar(255) Yes member_city varchar(255) Yes member_mob varchar(255) Yes member_mob_avilble enum('0', '1') Yes 0member_contact varchar(255) Yes member_tel varchar(255) Yes member_mail_avilble enum('0', '1') Yes 0member_really_name varchar(255) Yes member_sex enum('0', '1') Yes 0member_birth_day date Yes 0000-00-00member_study int(11) Yes 0member_hoppy tinytext Yes NULLmember_online enum('0', '1') Yes 0member_time date Yes 0000-00-00member_last_time date Yes 0000-00-00member_year varchar(255) Yes member_type enum('0', '1') Yes 0member_active enum('0', '1') Yes 0member_active_mob enum('0', '1') Yes 0active_code_mail int(11) Yes 0active_code_mob int(11) Yes 0Table structure for table hgi_paid_servicesField Type Null Defaultpaid_id int(11) Yes NULLpaid_special text Yes NULLpaid_fixed text Yes NULLpaid_tads text Yes NULLpaid_sponsor text Yes NULLpaid_broker text Yes NULLpaid_commission text Yes NULLTable structure for table hgi_spiceal_showField Type Null Defaultspiceal_id int(11) Yes NULLspiceal_uid int(11) Yes 0spiceal_pager int(11) Yes 0spiceal_orderby enum('0', '1') Yes 0spiceal_countery varchar(255) Yes spiceal_time varchar(255) Yes Table structure for table mobile_onlineField Type Null Defaultonline_id int(11) Yes NULLonline_ip varchar(15) Yes online_time int(11) Yes 0online_member varchar(100) Yes online_page varchar(255) Yes Table structure for table myacountField Type Null Defaultmyacount_id int(11) Yes NULLmyacount_uid int(11) Yes 0myacount_time int(11) Yes 0myacount_bank varchar(255) Yes myacount_date date Yes 0000-00-00myacount_name_coustmer varchar(255) Yes myacount_nots tinytext Yes NULLmyacount_price int(11) Yes 0myacount_deal enum('done', 'pending') Yes donemyacount_type int(11) Yes 0Table structure for table php8Field Type Null Defaultid int(11) Yes 0text8 varchar(255) Yes

Link to comment
Share on other sites

login_ajax var http_request = false;$cCharset = "Windows-1256";//#################################################################################//################################################################################# function makeRequest_log() { if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE http_request = new ActiveXObject("Microsoft.XMLHTTP"); } var theVar2 = document.getElementById('login_username').value; var theVar3 = document.getElementById('login_userpass').value; http_request.onreadystatechange = alertContents_log; http_request.open('POST', 'index.php?action=slogin'); http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http_request.send("login_username="+theVar2+"&login_userpass="+theVar3); } function alertContents_log() {if (document.getElementById('login_username').value !="" && document.getElementById('login_userpass').value !=""){ if (http_request.readyState == 1) {document.getElementById('showithere_log').innerHTML = '<img src="image/loading.gif" border=0><br>جارى التسجيل....والتواصل مع قواعد البيانات'; } if (http_request.readyState == 4) { if (http_request.status == 200) { document.getElementById('showithere_log').innerHTML = http_request.responseText; } else { document.getElementById('showithere_log').innerHTML ='There was a prblem with the request.'; } }}else{document.getElementById('showithere_log').innerHTML ='<img border="0" src="image/gogo_arabic.gif">  <font color="#FF0000">يرجى إدخال اسم الدخول وكلمة المرور<br><a href="#" onclick="java script: HGI_show(\'showithere_log2\'),HGI_hide(\'showithere_log\');">للعودة لصفة تسجيل الدخول مرة أخرى</a></font>';}}

Link to comment
Share on other sites

and this is login.html code<html dir="rtl"><meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><meta http-equiv="Content-Language" content="ar-sa"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document">{include file="$config_style/headws-1256"; {if ($erro_insert_all_filds or $login_out or $login)} <div>{$erro_insert_all_filds}{$login_out}{$login}</div> {/if} <h3>الدخول للموقع</h3><br /> <p style="text-align: justify;">يرجى إدخال اسم المستخدم وكلمة السر في النموذج التالي:</p><br /> {if not $login}<div align="center"><div class="boxH" style="width: 420px;">الدخول للموقع</div><div class="boxB" style="width: 420px;"><div class="row" style="margin-top: 10px;"> <div id="showithere_log"></div><div id="showithere_log2"> <table border="0" width="100%"> <tr> <td width="99" height="25">اسم المستخدم</td> <td> <input type="text" id="login_username" size="25" dir="ltr"></td> </tr> <tr> <td width="99" height="25">كلمة المرور</td> <td> <input type="password" id="login_userpass" size="25" dir="ltr"></td> </tr> <tr> <td width="99" height="25"> </td> <td> <input type="button" value="دخول" onclick="java script: HGI_show('showithere_log'),HGI_hide('showithere_log2'),makeRequest_log();"></td> </tr> </table> <div style="text-align: center;margin-top: 10px;">| <a href="forget.html">نسيت كلمة المرور</a> | <a href="active_mail.html">تفعيل البريد</a> | <a href="active_mob.html">تفعيل الجوال</a> | <a href="register.html">تسجيل</a> |</div> </div></div></div></form> </td>{else} <!--META HTTP-EQUIV=Refresh CONTENT=1;URL=index.html--> {/if}{include file="$config_style/footer.html"}

Link to comment
Share on other sites

Open index.php and find the part where it processes the login. This is the URL that it sends the login information to:index.php?action=sloginSo you'll need to open index.php and find the code that handles "slogin". It will probably look something like this:if ($_GET['action'] == "slogin"){...Add the code after that.echo "<!--\n";echo 'submitted user name: ' . $_POST['login_username'] . "\n";echo 'submitted password: ' . $_POST['login_userpass'] . "\n";$result = mysql_query("SELECT * FROM hgi_members WHERE member_name='عمرو'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){echo 'database user name: ' . $row['member_name'] . "\n";echo 'database password: ' . $row['member_pass'] . "\n";}elseecho 'test user not found';echo "\n-->";After you login, again, in your browser go to View->Source to view the HTML source code, and find the output that PHP printed to show the usernames and passwords.

Link to comment
Share on other sites

this is code after i put if($_GET['action'] == 'login'){$mytitle = 'تسجيل الدخول'; $smarty->assign ('mytitle',$mytitle); $smarty->display($config_style.'/login.html');} ##########################################################if($_GET['action'] == 'slogin'){echo "<!--\n";echo 'submitted user name: ' . $_POST['login_username'] . "\n";echo 'submitted password: ' . $_POST['login_userpass'] . "\n";$result = mysql_query("SELECT * FROM hgi_members WHERE member_name='عمرو'") or exit(mysql_error());if ($row = mysql_fetch_assoc($result)){echo 'database user name: ' . $row['member_name'] . "\n";echo 'database password: ' . $row['member_pass'] . "\n";}elseecho 'test user not found';echo "\n-->"; //اختبار وجود الحقول if ($_SERVER['REQUEST_METHOD'] == 'POST' && (!$_POST['login_username'] || !$_POST['login_userpass'])) { //فى حالة عدم دخول الحقول المطلوبة $smarty->assign('erro_insert_all_filds' , 'يرجى ادخال جميع الحقول'); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $ch = $mst3ml->login_user(); if ($ch != false) { $_SESSION['user_mst3mal'] = $ch; $smarty->assign('login' , 'تم الدخول بنجاح !!!<br />سيتم تحويل تلقائياً إلى الصفحة التى كنت.<br />ويمكنك الضغط <a href="index.php">هنا</a> للأنتقال يدوياً.'); $mst3ml->user_online($_SESSION['user_mst3mal']); //header("location: index.php"); } else { $smarty->assign('login_out' , 'إما أن يكون أسم المستخدم خطأ أو تكون كلمة المرور خطأ<br />يرجى المحاولة مرة أخرى<br /><a href="#" onclick="java script: HGI_show(\'showithere_log2\'),HGI_hide(\'showithere_log\');">للعودة لصفة تسجيل الدخول مرة أخرى</a>'); } } $smarty->assign ('mytitle','تسجيل الدخول'); $smarty->display($config_style.'/slogin.html');}this is thr source code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html dir="rtl"><head> <meta http-equiv=Content-Type content="text/html charset=windows-1256"> <title>مستعمل - حراج الأنترنت العربى - الرئيسية</title> <meta http-equiv="description" content="" /> <meta http-equiv="keywords" content="" /> <link rel="stylesheet" type="text/css" href="templates/hgi_site/def.css" /> <script src="bmi.js" language="javascript"></script><script type="text/javascript">function HGI_hide(vID){document.getElementById(vID).style.display="none";}function HGI_show(vID){document.getElementById(vID).style.display="block";}</script> <script src="login_ajax.js" language="javascript"></script> </head><body><div class="footer" style="height: 20px; width: 752px;"> <div style="width: 220px; height: 20px; float: right; background-color: #FFFFFF; border-top: 1px solid #004488; border-right: 1px solid #004488;"></div> <div style="width: 010px; height: 20px; float: right;"><img src="http://dev12.projects.hgicom.com/mst3ml//image/topcurve.gif" width="10" height="20" border="0" alt="" /></div> <div style="width: 050px; height: 20px; float: right; border-bottom: 1px solid #004488; text-align: left;"><a href="index.html" style="font-size: 13px;">الرئيسية</a></div> <div style="width: 471px; height: 20px; float: right; border-bottom: 1px solid #004488; text-align: left;"> <a href="?action=register" style="font-size: 12px;">تسجيل</a>|<a href="login.html" style="font-size: 12px;">دخول</a> </div></div><div class="page"> <div class="header" style="background-color: #FFFFFF;"> <div style="float: right; width: 250px; margin-top: 3px;"><a href="index.html"><img src="http://dev12.projects.hgicom.com/mst3ml//image/logo.gif" width="201" height="58" border="0" alt="مستعمل" /></a></div> <div style="float: right; width: 500px; margin-top: 10px;"></div> </div> <div class="menu"> <script type="text/javascript"> function funChangeMenu(vObj, vColor){ for(i = 1; i <= 6; i++){ document.getElementById("vButton" + i).style.backgroundColor = "#1875B5"; document.getElementById("vButtonBtm1" + i).style.backgroundColor = "#004488"; document.getElementById("vButtonBtm2" + i).style.backgroundColor = "#6699CC"; document.getElementById("vLinks" + i).style.display = "none"; } if(vColor == 1){ document.getElementById("vButton" + vObj).style.backgroundColor = "#DD9900"; document.getElementById("vButtonBtm1" + vObj).style.backgroundColor = "#DD9900"; document.getElementById("vButtonBtm2" + vObj).style.backgroundColor = "#DD9900"; document.getElementById("vLinks" + vObj).style.backgroundColor = "#DD9900"; document.getElementById("vLinks" + vObj).style.display = "block"; document.getElementById("vLinks" + vObj).style.height = "23px"; setTimeout("funChangeMenu(" + vObj + ", 0)", 500); }else{ document.getElementById("vButton" + vObj).style.backgroundColor = "#1D7CDC"; document.getElementById("vButtonBtm1" + vObj).style.backgroundColor = "#1D7CDC"; document.getElementById("vButtonBtm2" + vObj).style.backgroundColor = "#1D7CDC"; document.getElementById("vLinks" + vObj).style.backgroundColor = "#1D7CDC"; document.getElementById("vLinks" + vObj).style.display = "block"; document.getElementById("vLinks" + vObj).style.height = "23px"; } }</script> <noscript><p style="background-color: #FFCC33; border-top: 1px #004488 solid; padding: 2px; font-weight: bold;">تنبيه: كثير من خدمات الموقع لن تعمل لديك، لأن الجافاسكربت لا تعمل في جهازك. يرجى تفعيلها للحصول على كل خدمات الموقع!</p></noscript><div style="clear: both; border-bottom: 1px solid #004488; width: 750px; height: 0;"><!-- --></div><div style="clear: both; border-bottom: 1px solid #6699CC; width: 750px; height: 0;"><!-- --></div><div id="vButton1" class="button" style="width: 124px;"><a href="java script:funChangeMenu(1, 1)">السوق</a></div><div class="buttonBrd2"><!-- --></div><div class="buttonBrd1"><!-- --></div><div id="vButton2" class="button"><a href="java script:funChangeMenu(2, 1)">خدمات السوق</a></div><div class="buttonBrd2"><!-- --></div><div class="buttonBrd1"><!-- --></div><div id="vButton3" class="button"><a href="java script:funChangeMenu(3, 1)">المنتدى</a></div><div class="buttonBrd2"><!-- --></div><div class="buttonBrd1"><!-- --></div><div id="vButton4" class="button"><a href="java script:funChangeMenu(4, 1)">إدارتك</a></div><div class="buttonBrd2"><!-- --></div><div class="buttonBrd1"><!-- --></div><div id="vButton5" class="button"><a href="java script:funChangeMenu(5, 1)">الخدمات المدفوعة</a></div><div class="buttonBrd2"><!-- --></div><div class="buttonBrd1"><!-- --></div><div id="vButton6" class="button" style="width: 124px;"><a href="java script:funChangeMenu(6, 1)">حول الموقع</a></div><div style="clear: both;"> <div id="vButtonBtm11"><!-- --></div><div id="vButtonBtm12"><!-- --></div><div id="vButtonBtm13"><!-- --></div> <div id="vButtonBtm14"><!-- --></div><div id="vButtonBtm15"><!-- --></div><div id="vButtonBtm16"><!-- --></div></div><div style="clear: both;"> <div id="vButtonBtm21"><!-- --></div><div id="vButtonBtm22"><!-- --></div><div id="vButtonBtm23"><!-- --></div> <div id="vButtonBtm24"><!-- --></div><div id="vButtonBtm25"><!-- --></div><div id="vButtonBtm26"><!-- --></div></div><div class="links"><p id="vLinks1">| <a href="pager-cat-1.html">كمبيوتر وإنترنت</a>| </p><p id="vLinks2">|<a href="adv_search.html">بحث متقدم</a>|<a href="elctronic_shop.html">المتاجر الإلكترونية</a>|<a href="ur_shop.html">متجرك الإلكترونى</a>|<a href="favo.html">الإعلانات المفضلة</a>|<a href="add_ads.html">إضافة إعلان</a>|</p><p id="vLinks3">|<a href="forum.html">منتدى مستعمل</a>|<a href="elctronic_forum.html">المنتديات الألكترونية</a>|<a href="ur_elctronic_forum.html">منتداك الإلكترونى</a>|<a href="favo_forum.html">المواضيع المفضلة</a>|<a href="add_forum.html">إضافة موضوع</a>|</p><p id="vLinks4">|<a href="static.html">إحصائيات</a>|<a href="inbox.html">البريد الداخلى</a>|<a href="?action=ur_shop">متجرك الإلكترونى</a>|<a href="myads.html">إعلانتك </a>|<a href="ur_comment.html">ردودك</a>|<a href="?action=ur_elctronic_forum">منتداك الإلكترونى</a>|<a href="mytopic.html">مواضيعك</a>|<a href="ur_comment_forum.html">ردودك</a>|<a href="file.html">ملفاتك</a>|<a href="edit_user.html">تحديث معلوماتك</a>|<a href="spiceal.html">تخصيص الموقع</a>|</p><p id="vLinks5">|<a href="paid_special.html">العضوية المميزة</a>|<a href="paid_fixed.html">الأعلانات الثابتة</a>|<a href="paid_tads.html">الأعلانات التجارية</a>|<a href="paid_sponsor.html">الرعاية الرسمية</a>|<a href="paid_broker.html">وساطة مستعمل</a>|<a href="paid_commission.html">عمولة مستعمل</a>|</p><p id="vLinks6">|<a href="config_what_mst3ml.html">ماهو مستعمل ؟</a>|<a href="ask_agin.html">الاسئلة المكررة</a>|<a href="send_mail_admin.html">أتصل بنا</a>|<a href="link.html">روابط مستعمل</a>|<a href="media.html">مستعمل فى الأعلام</a>|<a href="config_condetion.html">إتفاقية أستخدام الموقع</a>|</p></div><div style="clear: both; border-bottom: 1px solid #004488; width: 750px; height: 0;"><!-- --></div></div> <div class="body"> <table border="0" cellpadding="0" cellspacing="10" width="750"><tr valign="top"> <td><div style="border: 1px solid #1875B5; background-color: #F7F7F7; padding: 20px 0 2px 0; text-align: center;"><form method="post" action="hgi-adv_search-done.html" name="calform"> <input type="text" name="searchword" size="48" maxlength="100" style="border: 1px solid #DD9900; height: 22px; border-left-width: 0px;" /><input type="submit" name="vSubmit" value="بحث في سوق مستعمل" style="border: 1px solid #DD9900; background-color: #FFCC33; width: 170px; height: 22px; font-weight: bold; padding-bottom: 3px;" /><input type="hidden" name="xt" value="1" /><input type="hidden" name="f" value="1" /> <p style="font-size:11px; color: #DD9900; text-align: right; margin-right: 60px;">مثلاً: "فيلا" أو "سيارة كامري" أو "كمبيوتر محمول" أو "ساعة رولكس".</p> </form> <p style="padding-top: 8px; font-size:11px; color: #888888;">دعاء السوق: لا إله إلا الله وحده لا شريك له، له الملك وله الحمد يحيي ويميت وهو حي لا يموت بيده الخير وهو على كل شئ قدير.</p></div><br /><div style="float: left; margin-top: 10px; width: 330px;"><div class="boxH3"><a href="/home/fixed.php">إعلانات مثبتة</a></div><div class="boxB3" style="font-weight: bold; background-color: #FFFF99;"> <p style="padding-top: 2px;"> • <a href="ads-deatils-6.html">aaaaaaaaaaaaa</a> </p> <p style="padding-top: 2px;"> • <a href="ads-deatils-7.html">s</a> </p> </div><div class="boxH3" style="margin-top: 10px;"><a href="elctronic_shop.html">متاجر إلكترونية</a></div><div class="boxB3"> • <a href="shop-one_shop-www.ewaseet.com.html" >جريد الوسيلة</a></p>• <a href="shop-one_shop-www.alvip1.com.html" >منتدى الاسعار</a></p>• <a href="shop-one_shop-www.al-7rag.com/vb.html" >الحراج الالكتروني</a></p></div><div class="boxH3" style="margin-top: 10px;"><a href="elctronic_forum.html">منتديات إلكترونية</a></div><div class="boxB3"><p>• <a href="forum-one_elctronic_forum-aaaaa.html" >أجمد منتدى طبعا</a></p></div> </div><div style="float: right; margin-top: 10px; width: 260px;"><div class="boxH3">إدارتك</div><div class="boxB3"> <div id="showithere_log"></div> <div id="showithere_log2" style="width: 260; height: 129"> <table border="0"> <tr> <td width="99" height="25">اسم المستخدم</td> <td> <input type="text" id="login_username" size="20" dir="rtl"></td> </tr> <tr> <td width="99" height="25">كلمة المرور</td> <td> <input type="password" id="login_userpass" size="20" dir="rtl"></td> </tr> <tr> <td width="99" height="25"> </td> <td> <input type="button" value="دخول" onclick="java script: HGI_show('showithere_log'),HGI_hide('showithere_log2'),makeRequest_log();"></td> </tr> </table> <div style="text-align: center;margin-top: 10px;">| <a href="forget.html">نسيت كلمة المرور</a> | <a href="active_mail.html">تفعيل البريد</a> | <a href="active_mob.html">تفعيل الجوال</a> | <a href="register.html">تسجيل</a> |</div> </div> </div> <div class="boxH3" style="margin-top: 10px;">إحصائيات</div><div class="boxB3"> <p style="text-align: center;">المتواجدين : 1(الأعضاء :1 , الزوار : 0)</p></div><div style="margin-top: 10px;"></div><div style="margin-top: 10px;"></div></div><div style="clear: both;"></div> </div><div><div style="border: 4px double #6699CC; background-color: #F7F7F7; text-align: center; padding: 10px; margin-top: 20px;"> <div><a class="######" href="forum.html">منتدى مستعمل</a><p>مناقشات تجارية، وتبادل للآراء والأفكار.</p></div> <p style="text-align: justify; margin-top: 5px;"><b>آخر المواضيع:</b> <a href="forumhgi-deatils_forum-2.html">..عن اذنكم ببوسها واضمها .</a> •• <a href="forumhgi-deatils_forum-3.html">..عن اذنكم ببوسها واضمها .</a> •• <a href="forumhgi-deatils_forum-4.html">..عن اذنكم ببوسها واضمها .</a> •• <a href="forumhgi-deatils_forum-5.html">asdasdasdas</a> •• <a href="forumhgi-deatils_forum-6.html">z\xz\x\zx</a> •• </p></div><div style="border: 4px double #6699CC; background-color: #F7F7F7; text-align: center; padding: 10px; margin-top: 20px; min-height: 300px;"> <div style="margin-bottom: 10px;"><a href="#" class="######">سوق مستعمل</a></div> <div style="clear: both; width: 100%;"> <span style="float: right; width: 47%;"> <a href="pager-cat-1.html" class="######">كمبيوتر وإنترنت</a><br /><br /></span> </div> <div style="clear: both; width: 100%; margin-top: 20px;"> <p style="text-align: justify;"><b>آخر الإعلانات:</b> <a href="ads-deatils-6.html">aaaaaaaaaaaaa</a> •• <a href="ads-deatils-7.html">s</a> •• <a href="ads-deatils-5.html">dfsdf</a> •• <a href="ads-deatils-3.html">asdasdasd</a> •• <a href="ads-deatils-4.html">dadasdas</a> •• <a href="ads-deatils-2.html">◄◄الثلج المضيئ ( 8 وضعيات اضاءة) وصل</a> •• <a href="ads-deatils-1.html">شششششششششششش</a> •• </p> </div> </div></div></td><td width="120"><div class="boxH" style="width: 120px;">بسرعة!</div><div class="boxB" style="margin-bottom: 10px;"> <div> <form method="post" action="search_by_nam.html" ><input type="text" name="num_ads" style="width: 50px;" maxlength="6" class="s1" /> <input type="submit" value="إعلان" class="s1" style="width: 50px" /></form> </div> <div> <form method="post" action="search_by_forum.html" ><input type="text" name="forum_num" style="width: 50px;" maxlength="5" class="s1" /> <input type="submit" value="موضوع" class="s1" style="width: 50px" /></form> </div> <div> <form method="post" action="search_by_name.html" ><input type="text" name="name" style="width: 50px;" class="s1" /> <input type="submit" value="عضو" class="s1" style="width: 50px" /></form> </div></div><a href="bunner-show_bunner-2.html" target="_blank" title="تاريخ البداية :2007-12-07 00:00:00||ينتهى بعد :2008"><img src="http://dev12.projects.hgicom.com/mst3ml/up/bunner/t-511-724.gif" width="120" height="600" /></a></td> </tr></table> </div> </div><div class="footer"> <a style="float: right" href="java script:window.external.AddFavorite('http://dev12.projects.hgicom.com/mst3ml/','');">أضف مستعمل للمفضلة</a> <a style="float: left" href="java script: //" onClick="java script:this.style.behavior='url(#default#homepage)';this.setHomePage('http://dev12.projects.hgicom.com/mst3ml/');">اجعل مستعمل صفحة البداية</a><p align="center">جميع الحقوق محفوظة © لمجموعة هنداوى الدولية.</p></div></body></html><script language="javascript"><!--bmi_SafeAddOnload(bmi_load,"bmi_orig_img",1);//--></script>

Link to comment
Share on other sites

Hmm.. OK, it looks like login is using AJAX, so it's not going to show the output I wanted.OK, new plan. Create a new login form just for testing this, but don't have it use AJAX. Save this file as a new .html file in the same folder as the index.php file:

<html><head><title>Login Test</title></head><body><form action="index.php?action=slogin" method="post">Name: <input type="text" name="login_username"><br>Pass: <input type="password" name="login_userpass"><br><input type="submit" value="Submit"></form></body></html>

After you save that, open it in your browser. It won't look pretty, but enter your stuff and press Submit and then do the same thing, View->Source and post what you see.

Link to comment
Share on other sites

Hmm, I don't know why it would do that.Just to make sure, the previous HTML file I posted should be a new file, such as "login_test.html", and should be saved inside the same folder as your index.php file. Don't replace any existing files though, it should be a brand new file. To test, open a browser and go to (for example) "http://localhost/login_test.html", or "http://localhost/mst3ml/login_test.html", and use that to submit. Is that what you did?

Link to comment
Share on other sites

this is aiaxfile : login_ajax var http_request = false;$cCharset = "Windows-1256";//#################################################################################//################################################################################# function makeRequest_log() { if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE http_request = new ActiveXObject("Microsoft.XMLHTTP"); } var theVar2 = document.getElementById('login_username').value; var theVar3 = document.getElementById('login_userpass').value; http_request.onreadystatechange = alertContents_log; http_request.open('POST', 'index.php?action=slogin'); http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http_request.send("login_username="+theVar2+"&login_userpass="+theVar3); } function alertContents_log() {if (document.getElementById('login_username').value !="" && document.getElementById('login_userpass').value !=""){ if (http_request.readyState == 1) {document.getElementById('showithere_log').innerHTML = '<img src="image/loading.gif" border=0><br>جارى التسجيل....والتواصل مع قواعد البيانات'; } if (http_request.readyState == 4) { if (http_request.status == 200) { document.getElementById('showithere_log').innerHTML = http_request.responseText; } else { document.getElementById('showithere_log').innerHTML ='There was a prblem with the request.'; } }}else{document.getElementById('showithere_log').innerHTML ='<img border="0" src="image/gogo_arabic.gif">  <font color="#FF0000">يرجى إدخال اسم الدخول وكلمة المرور<br><a href="#" onclick="java script: HGI_show(\'showithere_log2\'),HGI_hide(\'showithere_log\');">للعودة لصفة تسجيل الدخول مرة أخرى</a></font>';}}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...