
nomanoma
Members-
Posts
33 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
nomanoma's Achievements

Member (2/5)
0
Reputation
-
submit form not working with firefox 7 or chrome
nomanoma replied to nomanoma's topic in PHP Coding Help
thank you! -
hi, I try to login through a form but when I click the button it does nothing in firefox7 and chrome. It works fine in IE. here's the code: $a=""; $b=""; if ($_POST) { $a=trim($_POST["id"]); $b=trim($_POST["password"]); $a=str_replace("'","",$a); $b=str_replace("'","",$b); $a=str_replace("\"","",$a); $b=str_replace("\"","",$b); } if ($a=="" || $b=="") { if ($_SESSION["id_session"]=="" || $_SESSION["password_session"]=="") { ?> <form action=members.php method=post> <br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login Area</h3></td></tr> <tr><td>Member's ID</td><td><input type=text name=id></td></tr> <tr><td>Password</td><td><input type=password name=password></td></tr> <tr><td> </td><td> <a href="forgot.php" onclick="doexit=false;"><font face="Verdana,Arial,Helvetica" size="1" color="#000000"><b>Forgot Your Password?</b></font></a></td></tr> <tr><td colspan=2 align=center><input type=submit value="Log In"></td></tr> </table></form> <? } else { middle(); } } else { $check=0; $id=$_POST["id"]; $rs = mysql_query("select * from members where ID='$id'"); if ($rs) { $arr=mysql_fetch_array($rs); $n2=$arr['Password']; if ($n2==$b) { $check=1; $_SESSION["id_session"]=$arr[0]; $_SESSION["password_session"]=$arr[9]; middle(); } } if ($check==0) { print "<h2>Invalid User Id or Password</h2>"; ?> <form action=members.php method=post> <br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login Area</h3></td></tr> <tr><td>Member's ID</td><td><input type=text name=id></td></tr> <tr><td>Password</td><td><input type=password name=password></td></tr> <tr><td> </td><td> <a href="forgot.php" onclick="doexit=false;"><font face="Verdana,Arial,Helvetica" size="1" color="#000000"><b>Forgot Your Password?</b></font></a></td></tr> <tr><td colspan=2 align=center><input type=submit value="Log In"></td></tr> </table></form> <? } } thanks
-
can please post the whole login.php page?
-
well, thank u so much again. of course i'll do my best to help around here. and if u ever need anything u can pm me
-
wow thank u ) u r awesome. i can't believe i was that stupid how can i repay you???
-
yes, i put the limit only when i couldn't display it right. but it should display at least 10.
-
if it's not set it will change the clickable hyperlink attached to the banner with a different one that is for non-members. i really appreciate ur help. i used ur edited code but it's still not showing beside each other. it's still going over each other. let me know if u need another snapshot of how it looks now.
-
the only problem i have is that it displays the buttons over each other and not on the same row. i'm attaching a snapshot. [attachment deleted by admin]
-
ok can u please tell me how to display the banners side by side and not over each other ?
-
hi: i'm trying to make a scrolling banner ads script. the thing is i want the banners to be shown in one row beside each other. what i've done makes the banners show under each other. i can't use just html and make a tabel with cells and add the banner links because i have to get the urls from a database like this: $res_banners = @mysql_query("SELECT * FROM scbuttons where status=1 and max>shown ORDER BY RAND() LIMIT 10"); i appreciate any help. here's the complete code i'm using: <?php $res_banners = @mysql_query("SELECT * FROM scbuttons where status=1 and max>shown ORDER BY RAND() LIMIT 1"); while($banners = @mysql_fetch_array($res_banners)) { mysql_query("update scbuttons set shown=shown+1, show_views=show_views+1 where id=".$banners['id']); if ($banners[bannerurl] != "" ) { ?> <? if( session_is_registered("ulogin") ) { ?> <center><table style="width:800; height: 170px;" cellspacing="0" cellpadding="0" bordercolor=#000000 border="1" bgcolor=#FFFFFF><tr><td> <marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();"><a href="<? echo "$domain/scbuttonclick1.php?id=".$banners['id']; ?>" target="_blank"><img src="<? echo $banners['bannerurl']; ?>" style="float:left;" border="0"></a></marquee> <? } else { ?> <marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();"><a href="<? echo "$domain/scbuttonclick.php?id=".$banners['id']; ?>" target="_blank"><img src="<? echo $banners['bannerurl']; ?>" style="float:left;" border="0"></a></marquee> <? } } } ?> </tr></td></table></center>
-
ok, i replaced eval with echo for this part: $OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=16680;eval((base64_decode('JE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO3doaWxlKC0tJE8wME8wME8wMClmZ2V0cygkTzAwME8wTzAwLDEwMjQpO2ZnZXRzKCRPMDAwTzBPMDAsNDA5Nik7JE9PMDBPMDBPMD0oYmFzZTY0X2RlY29kZShzdHJ0cihmcmVhZCgkTzAwME8wTzAwLDg4MCksJ1ZoY1h3N3NVUEw2M29kU0VZTnYrV1ova1RNbHl1MjlPNHFDRlJBRFFwMGJuNUphMXhCdGpLZmVtSGlHSWd6OHI9JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?> and i got what you say you got: $O000O0O00=fopen($OOO0O0O00,'rb');while(--$O00O00O00)fgets($O000O0O00,1024);fgets($O000O0O00,4096);$OO00O00O0=(base64_decode(strtr(fread($O000O0O00,880),'VhcXw7sUPL63odSEYNv+WZ/kTMlyu29O4qCFRADQp0bn5Ja1xBtjKfemHiGIgz8r=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));eval($OO00O00O0); but anything more than this gives me unicode, i know i must be missing something. all i'm intersted in is to know how to decode it, i don't care about the original php code. so can you tell me step by step what to do next. thank you
-
no, i'm adding the encoded code in the string as in this: $str = 'JE8wMDBPME8wMD1mb3BlbigkT09PME8';
-
i'm the owner of that domain the code is licensed to (rockintextads.com) and the encoded code is pretty much the same as the php code i gave you except that it has a inverse tick box option anyway here's what i use: <?php $str = ''; echo base64_decode($str); ?> maybe it's too simple for it. would you please let me know what you used? thanks
-
i'm attaching the encoded value in a php file. (post.php) the decoded should be something like this php file i'm also attaching (decoded.php) [attachment deleted by admin]
-
normally when i decode something like this, the output eventually will be the original php code (with english characters, not unicode characters)