Jump to content

whenever i try to submit a form download process begins???????////whyyyyyy


madhmad

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.