madhmad Posted April 21, 2011 Share Posted April 21, 2011 my front page of d site is having som links like login ,register...whenever i click on login it shows me login.php properly in another div ..but whenever i submit username and pasword n click on submit button d loginprocess.php starts downloading on google chrome...i dnt understand why Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/ Share on other sites More sharing options...
kenrbnsn Posted April 21, 2011 Share Posted April 21, 2011 Without seeing your code, it's hard to determine the cause. If you post the code, please put it between tags. This could happen if your web server isn't configured to handle PHP. Also how are you invoking the first script? It needs to be invoked via a URL. Ken Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/#findComment-1204471 Share on other sites More sharing options...
madhmad Posted April 21, 2011 Author Share Posted April 21, 2011 sry i dont hav d code...my partner has it n i forgot to take frm her Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/#findComment-1204472 Share on other sites More sharing options...
kenrbnsn Posted April 21, 2011 Share Posted April 21, 2011 Please spell your words. This isn't Twitter, you can write as many characters as you need. Ken Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/#findComment-1204483 Share on other sites More sharing options...
Muddy_Funster Posted April 21, 2011 Share Posted April 21, 2011 Please spell your words. This isn't Twitter, you can write as many characters as you need. Ken +1 and without the code there's pretty much nothing we can do. Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/#findComment-1204484 Share on other sites More sharing options...
madhmad Posted April 21, 2011 Author Share Posted April 21, 2011 sorry n the problem is solved guys...niways thanks...now d problem is i cant give color to my divs..here is my code <div id="menu" align="right"> <p><a href="new.php">HOME</a> | <a href="divlogin.php">Login</a> | <a href="">ABOUT</a> | <a href="">LINKS</a></p> <p> </p> </div> <div id="content" align="left" bgcolor="green"> <table border="0" width="1024px" cellspacing="0" cellpadding="0" id="main"> <tr> <td align="center" height="300px" valign="middle"> <!--Products--> <table border="0" cellpadding="3"> <tr> <td> <b> <?php if($_REQUEST['er']==2) { echo '<b style="color:red;">Invalid Username</b>'; } elseif($_REQUEST['er']==1) { echo '<b style="color:red;">Invalid Password</b>'; } ?> </b> <!-- login form--> <form name="login" action="loginprocess.php" method="post"> <table border="0" cellspacing="0" cellpadding="0" id="loginbox"> <tr id="loginboxtitle"> <td colspan="4" style="color:#fff;">WELCOME, PLEASE SIGN IN</td> </tr> <tr> <td colspan="4"></td> </tr> <tr> <td></td> <td><strong>Username</strong> : </td> <td align="right"><input type="text" name="username" size="20" class="textBox"></td> <td></td> </tr> <tr> <td></td> <td><strong>Password</strong> : </td> <td align="right"><input type="password" name="password" size="20" class="textBox" size="20"></td> <td></td> </tr> <tr> <td></td> <td> </td> <td align="right"> <input type="submit" name="Submit" value="Submit" onClick="return validate();" class="sub-butt"/></td> <td></td> </tr> <tr> <td></td> <td><!--<a href="password_forgotten.php"><b>Password forgotten?</b></a>--></td> </tr> </table> </form> <!--end form--> </td> </tr> </table> <!--end Products--> </td> </tr> <tr><td height="10px;"></td></tr> </table> </div> Quote Link to comment https://forums.phpfreaks.com/topic/234346-whenever-i-try-to-submit-a-form-download-process-beginswhyyyyyy/#findComment-1204506 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.