candyclaire Posted August 23, 2007 Share Posted August 23, 2007 hello, i really need help here. My index.php page wont submit even after clicking the submit button. Have i forgotten to set something in the php.ini? Yes, ive cleared all the temporary internet files, cookies, and all..still it wont work Im using CentOS linux and then PHP4... Im pretty sure that my index.php page is coded correctly.. really need help. thanks Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 23, 2007 Share Posted August 23, 2007 You've forgotten to post the code. We can't help if we can't see the code. Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 24, 2007 Author Share Posted August 24, 2007 You've forgotten to post the code. We can't help if we can't see the code. im sure it doesnt have something to do with the code..as it was perfectly working fine in the windows environment... Now ive tested it, the behavior is different... the form elements wont show. the userlogin text and password text are all gone. Anybody who've experienced this kind of behavior? the codes are just way too long................. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 24, 2007 Share Posted August 24, 2007 Your form is displayed as HTML generated from your php script. If the form isn't working and some elements are not displaying, then the problem is that your php script is not generating the right (or complete) html code. We can't fix what we can't see. If it worked perfectly in Windows and fails now, it can't be the same stuff. Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 Your form is displayed as HTML generated from your php script. If the form isn't working and some elements are not displaying, then the problem is that your php script is not generating the right (or complete) html code. We can't fix what we can't see. If it worked perfectly in Windows and fails now, it can't be the same stuff. hello, the form elements are now showing.....but my real problem here is that the page wont really submit even after clicking the submit button... it would just sort of refreshes and then it stays at the same page... Thanks for any replies... i need it Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 look the form and see where the action is going maybe this uses php self or no action at all Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 look the form and see where the action is going maybe this uses php self or no action at all the action of the form is being set correctly to where it should go... mmmm....maybe it has something to do with my php.ini? what do you think? Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 i cant think because no code no error so what do you expect us to see Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 27, 2007 Share Posted August 27, 2007 the action of the form is being set correctly to where it should go... mmmm....maybe it has something to do with my php.ini? what do you think? Like everybody else here, we think that there's most likely a problem with your invisible code. However sure you are that it's coded correctly, it obviously isn't or it wouldn't be "sort of refreshing" or not even submitting when you click the submit button. If you don't want to post a link to a live non-performing version of the code and you don't want to post any code, there's not much more point in continuing this thread. Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 the action of the form is being set correctly to where it should go... mmmm....maybe it has something to do with my php.ini? what do you think? Like everybody else here, we think that there's most likely a problem with your invisible code. However sure you are that it's coded correctly, it obviously isn't or it wouldn't be "sort of refreshing" or not even submitting when you click the submit button. If you don't want to post a link to a live non-performing version of the code and you don't want to post any code, there's not much more point in continuing this thread. ok.. then ill just do my own research... thanks for your help anyway.... Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 27, 2007 Share Posted August 27, 2007 GODDAMNIt, just post the html. Whats the harm? Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 easy dude let him do what he wants but i should say its better to be corrected by somebody like what i always do here i dont post an error here but i post to ask suggestion to improve what ever i have so let him row his boat in the dark Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 easy dude let him do what he wants but i should say its better to be corrected by somebody like what i always do here i dont post an error here but i post to ask suggestion to improve what ever i have so let him row his boat in the dark i really dont have any problem being corrected... as they are my basis for improvement... problem is the code is just too long and then it has lots of included files into it.... its not just a simple tryout program.... it is a working system that i need to send to japan this friday.... ive been testing it for quite some time now... but when i did the test to linux environment (CentOS)... the problem arised... if you are still willing to help me.. well then i'll try to post the codessssssssssssssss... Thanks.. God Bless Us All... Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 we dont say post the whole code, just post the code you think cause this error Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 <?php require_once("csvutil.php"); require_once("createzip.php"); require("logins.inc"); error_reporting(E_ERROR | E_WARNING | E_PARSE); $conm = pg_connect("port=$PORT dbname=$MASDB user=$PGUSER password=$PGPASS"); if(!$conm){ echo "マスターデータベースの異常です module:daytotal.php\n"; echo $FOOTER; exit; } $cond = pg_connect("port=$PORT dbname=$DATADB user=$PGUSER password=$PGPASS"); if(!$cond){ echo "データデータベースの異常です module:daytotal.php\n"; echo $FOOTER; exit; } $conn = pg_connect("port=$PORT dbname=$DAT2DB user=$PGUSER password=$PGPASS"); if(!$conn){ echo "ERROR:DataDBデータベースに接続できませんでした。\n"; exit; } // ヘッダー if($user_id == "2100"){ $arai[0] = "ピュア"; $araip[0] = "P"; $arai[1] = "ブライト"; $araip[1] = "B"; $arai[2] = "ノーブル"; $araip[2] = "N"; } if($user_id == "1200"){ $arai[0] = "レギュラー"; $araip[0] = "R"; } if($user_id == "1300"){ $arai[2] = "ダブル"; $araip[2] = "W"; $arai[3] = "ロイヤル"; $araip[3] = "R"; } if($user_id == "2200"){ $arai[0] = "ピュア"; $araip[0] = "P"; $arai[2] = ""; $araip[2] = ""; $arai[3] = ""; $araip[3] = ""; } echo "<HTML><HEAD><META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=UTF-8>\n"; // Added Javascript for csv download function echo "<SCRIPT LANGUAGE='JavaScript'src='csvdownload.js'></SCRIPT>"; echo "<TITLE>洗濯急便 > ".$user_name."</TITLE>"; if($proc==2){ echo "<meta http-equiv=refresh content=60;url=index.php?proc=2>"; } echo "</HEAD>\n"; // Added Javascript function check_body for automatic csv download. echo "<BODY topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 background='./gif/bluestripe4.gif' onLoad='check_body()' >\n"; echo "<TABLE BORDER=0 frame=below width=100% cellpadding=0 cellspacing=0>\n"; echo "<TR bgcolor=#2c2cbe><TD colspan=2><IMG src=./gif/spacer.gif width=20>\n"; echo "<B><FONT size=+2 color=#FFFFFF>洗濯急 + 便®:\n"; if($_SERVER["HTTP_HOST"]=="d4.nextberry.jp"){ echo "<font color=red>テストサーバー</font>\n"; } echo "<IMG src=./gif/spacer.gif width=20 height=1>\n"; echo $q_name."</B></FONT>\n"; echo "<TR bgcolor=#2c2cbe><TD><IMG src=./gif/spacer.gif width=20 height=1>\n"; echo "<FONT color=#c0c0c0>本日:".date("y年n月j日 G時i分")."</FONT>\n"; echo "<TD align=right>"; echo "<FORM ACTION=logout.php method=post>"; echo "<input type=submit name=_logout value=ログアウト><IMG src=./gif/spacer.gif width=20>"; echo "</FORM>"; echo "</TABLE><BR>"; //メニ echo "<table border=0 width=120 align=left>\n"; //echo "<tr><td align=center><img src=./gif/sk-05.gif><BR>\n"; echo "<tr><td align=center><img src=./gif/logo.jpg border=0><BR>\n"; echo "<br><a href=index.php>[トップページ]</a><br>\n"; if($proc=="" or ($proc>=1 and $proc<=5) or ($proc>=21 and $proc<=26) or $proc==50){ echo "<br><a href=index.php?proc=1>[ 注文受付 ]</a><br>\n"; echo "<br><a href=index.php?proc=2>[ 注文情報 ]</a><br>\n"; echo "<br><a href=index.php?proc=25>[ 納品入力 ]</a><br>\n"; echo "<br><a href=index.php?proc=3>[ 売上集計 ]</a><br>\n"; echo "<br><a href=index.php?proc=26>[ 入金一覧 ]</a><br>\n"; echo "<br><a href=index.php?proc=5>[ 顧客登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=40>[マスタ登録]</a><br>\n"; echo "<br><a href=index.php?proc=90>[ 掲 示 板 ]</a><br>\n"; // Added Link for CSV Download support for users type System Managers and Headquarters' Managers if($Clevel==0 or $Clevel==1){ echo "<br><a href=index.php?proc=50>[ C4本部連動 ]</a><br>\n"; } echo "<br><a href=http://www.adobe.co.jp/products/acrobat/readstep2.html target=_blank><img src=./gif/pdf.gif border=0></a>\n"; echo "<BR><BR><BR><BR><BR><BR><BR><BR><BR>\n"; echo "</table>\n"; } if($proc>=40 and $proc<=49 || $proc==94){ if($Clevel==0){ echo "<br><a href=index.php?proc=41>[加盟店登録]</a><br>\n"; echo "<br><a href=index.php?proc=45>[エリア登録]</a><br>\n"; } if($Clevel==0 or $Clevel==1){ echo "<br><a href=index.php?proc=49>[顧客リスト]</a><br>\n"; } echo "<br><a href=index.php?proc=42>[ 受付登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=43>[ スタッフ ]</a><br>\n"; echo "<br><a href=index.php?proc=94>[ 中分類登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=44>[ 商品登録 ]</a><br>\n"; //echo "<br><a href=index.php?proc=44&&user_id=$user_id>[ 商品登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=47>[ 素材登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=48>[ 加工登録 ]</a><br>\n"; echo "<br><a href=index.php?proc=46>[ 店舗情報 ]</a><br>\n"; echo "<BR><BR><BR><BR><BR><BR><BR><BR><BR>\n"; echo "</table>\n"; } if($proc>=90 and $proc<=93){ echo "<br><a href=index.php?proc=90>[ 掲示一覧 ]</a><br>\n"; echo "<br><a href=index.php?proc=92>[ 掲示書込 ]</a><br>\n"; echo "<BR><BR><BR><BR><BR><BR><BR><BR><BR>\n"; echo "</table>\n"; } //各ページ each page include("messages.inc"); switch($proc){ case 1: //注文ページ order page include("order.phps"); break; case 2: //注文情報 include("delinote.phps"); break; case 3: //売上集計 include("daytotal.phps"); break; case 4: //売上履歴 include("delivery.phps"); break; case 5: //顧客登録 include("komainte.phps"); break; case 21: //注文変更 include("order2.phps"); break; case 22: //商品入力 include("sales.phps"); break; case 25: //納品入力 include("nohin.phps"); break; case 26: //入金一覧 include("delitotal.phps"); break; case 41: //加盟店登録 include("usermainte.phps"); break; case 42: //受付登録 include("optmainte.phps"); break; case 43: //スタッフ登録 include("delimainte.phps"); break; case 44: //商品マスタ include("itemmainte.phps"); break; case 94: //商品マスタ include("classification.phps"); break; case 45: //エリアマスタ include("areamainte.phps"); break; case 46: //店舗情報マスタ include("kihon.phps"); break; case 47: //素材マスタ include("sozmainte.phps"); break; case 48: //加工マスタ include("kakmainte.phps"); break; case 49: //C4本部連動 include("koanalyze.phps"); break; // Process execution for CSV Download function case 50: //C4本部連動 //Function accessible only with higher level users if ($Clevel==0 or $Clevel==1){ include("download.phps"); } else { include("bbs.phps"); } break; case 90: case 91: case 92: case 93: default: //掲示板 include("bbs.phps"); break; } echo $FOOTER; echo "</BODY></HTML>\n" ?> Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 we dont say post the whole code, just post the code you think cause this error yep.. here it is.. Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 try to change this <FORM ACTION=logout.php method=post> to echo '<FORM ACTION="logout.php" method="post">'; and suggestion put the code inside to code tags and the way you do your include inside that switch it better using an array then loop to have the codes shorter Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 27, 2007 Share Posted August 27, 2007 alright, which line is the error in? Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 no error i guess but no expected output !!!! Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 no error i guess but no expected output !!!! yeah... coz the form that should be the output was coded in an included file... as ive said.... i really think it has something to do with the settings of my php... ive never done php in a Linux environment...sorry... and ive been searching around the net for probable solutions but i cant seem to find it...... suggestions, critcisms are very much welcome... violent reactions are not.. Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 alright, which line is the error in? as ive said i cant seem to find it... hmmm... the page wont submit and it would just sort of refreshes... ive done a handtrace... but still cant find it... thanks for the reply Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 try to change this <FORM ACTION=logout.php method=post> to echo '<FORM ACTION="logout.php" method="post">'; and suggestion put the code inside to code tags and the way you do your include inside that switch it better using an array then loop to have the codes shorter have you tried this!! Quote Link to comment Share on other sites More sharing options...
keeB Posted August 27, 2007 Share Posted August 27, 2007 Worst. code. ever Quote Link to comment Share on other sites More sharing options...
candyclaire Posted August 27, 2007 Author Share Posted August 27, 2007 Worst. code. ever yep.. i know... hehehe i guess i need a lot of practice... what do you expect from a fresh grad??? =) Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 im a fresh grad too dude please do what i say on the last post sure it will work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.