+ Reply to Thread
Results 1 to 8 of 8

Thread: Browswer problems

  1. #1
    thenewprogrammer is offline x10Hosting Member thenewprogrammer is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    45

    Browswer problems

    Wondering how to fix browser problems. Using a login, which works fine for my computer and internet explorerer but not in mozilla or my friends computer doesnt work the same. The login box is there but he cannot type anything in there. Wondering if this is common browser problem and what would cause it. If i need to post code or if you know from experience.

  2. #2
    Mr. DOS is offline x10 Sophmore Mr. DOS is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Nova Scotia, Canada
    Posts
    228

    Re: Browswer problems

    We'll need to see the HTML of the form, as well as any associated JavaScript.

    --- Mr. DOS
    I've written a couple articles on automatic application of AlphaImageLoader in IE6 using nothing but IE6-specific CSS rules.

  3. #3
    playminigames is offline x10 Sophmore playminigames is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    earth
    Posts
    216

    Re: Browswer problems

    yea, its really hard to try and fix something without seeing some code, or something similar. Hope you can help us help you!

  4. #4
    thenewprogrammer is offline x10Hosting Member thenewprogrammer is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    45

    Re: Browswer problems

    Its in php tags and echo'd out. I know i can use only one echo but this made it easier to read for me.
    Code:
     
    <?php 
    if(!$session->logged_in){
    echo "<form action=\"loginsystem/process.php\" method=\"post\" ><table align=\"left\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
     <tr><td>&nbsp; &nbsp; &nbsp;Username:</td><td><input type=\"text\" name=\"user\" size=\"13\" maxlength=\"30\" value=\"";
    echo $form->value("user"); 
    echo "\" /></td><td>";
    echo $form->error("user"); 
    echo "</td></tr><tr><td>&nbsp; &nbsp; &nbsp;Password:</td><td><input type=\"password\" name=\"pass\" size=\"13\"maxlength=\"30\" value='";
    echo $form->value("pass"); 
    echo "' /></td><td>";
    echo $form->error("pass"); 
    echo "</td></tr><tr><td colspan=\"2\" align=\"left\">&nbsp; &nbsp;<input type=\"checkbox\" name='remember' /";
    if($form->value("remember") != ""){ 
     echo "checked"; };
      echo ">&nbsp; Remember me next time <br /><input type=\"hidden\" name=\"sublogin\" value=\"1\" />
       &nbsp; &nbsp; &nbsp;<input type=\"submit\" value=\"Login\" /></td></tr><tr><td colspan=\"2\" align=\"left\"><br />
       <font size=\"2\">&nbsp; &nbsp; &nbsp;[<a href=\"loginsystem/forgotpass.php\" >Forgot Password?</a>]</font></td><td align=\"right\">
       </td></tr><tr><td colspan=\"2\" align=\"left\">&nbsp; &nbsp; &nbsp; Not registered? <a href=\"loginsystem/register.php\" >Sign-Up!</a>
       </td></tr></table></form>";
      }?>

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Browswer problems

    Would you also post a link to a live page, and a more explicit description of the expected and actual behaviors?

    Edit:
    The first problem I notice is in the line:
    PHP Code:
    echo "</td></tr><tr><td colspan=\"2\" align=\"left\">&nbsp; &nbsp;<input type=\"checkbox\" name='remember' /"
    The last "/" is for a self closing tag. If $form->value("remember") != "", then the "checked" attribute you later print is coming after the "/", resulting in invalid HTML.

    You can also write the code with no echos, which you may find more readable:
    HTML Code:
    <?php 
    if(!$session->logged_in){ ?>
        <form action="loginsystem/process.php" method="post" >
            <table align="left" border="0" cellspacing="0" cellpadding="3">
            <tr><td>&nbsp; &nbsp; &nbsp;Username:</td>
                <td><input type="text" name="user" size="13" maxlength="30" value="<?php echo $form->value("user"); ?>" /></td>
                <td><?php echo $form->error("user"); ?></td></tr>
            <tr><td>&nbsp; &nbsp; &nbsp;Password:</td>
                <td><input type="password" name="pass" size="13"maxlength="30" value="<?php echo $form->value("pass"); ?>" /></td>
                <td><?php echo $form->error("pass"); ?></td></tr>
            <tr><td colspan="2" align="left">&nbsp; &nbsp;<input type="checkbox" name='remember' 
        <?php
        if ($form->value("remember") != "") { 
            echo "checked"; 
        }
        ?>>&nbsp; Remember me next time <br /><input type="hidden" name="sublogin" value="1" />
       &nbsp; &nbsp; &nbsp;<input type="submit" value="Login" />
                </td></tr>
            <tr><td colspan="2" align="left"><br />
                    <font size="2">&nbsp; &nbsp; &nbsp;[<a href="loginsystem/forgotpass.php" >Forgot Password?</a>]</font></td>
                <td align="right"> </td></tr>
            <tr><td colspan="2" align="left">&nbsp; &nbsp; &nbsp; Not registered? <a href="loginsystem/register.php" >Sign-Up!</a></td></tr>
            </table>
        </form>
    <?php } ?>
    Don't use a table based layout, nor should you use "&nbsp;" for layout. You can usually find a better way than using <br />.
    Last edited by misson; 12-02-2009 at 08:11 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    thenewprogrammer is offline x10Hosting Member thenewprogrammer is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    45

    Re: Browswer problems

    Your way for code makes it much easier to read, thanks but problem is still there. In internet explorer 8 i can type text in the input field however in mozilla firefox its completly locked. The input boxes are there but i cannot type anything in.

  7. #7
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Browswer problems

    Would you also post a link to a live page,
    What he said.

  8. #8
    thenewprogrammer is offline x10Hosting Member thenewprogrammer is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    45

    Re: Browswer problems

    Just found the problem . It was z-index: -1 in css. The div was inside another div which caused the problem to overlap or something like that. Thanks for the advice on how to post form without echoing.

+ Reply to Thread

Similar Threads

  1. Paid account.. Will it fix problems?
    By altrock182182 in forum Free Hosting
    Replies: 3
    Last Post: 01-14-2008, 04:23 PM
  2. NOTE: For all problems regarding phpBB3 RC6
    By CrownVictoriaCop in forum Free Hosting
    Replies: 1
    Last Post: 10-14-2007, 03:35 PM
  3. Problems...problems...problems...
    By eternal-empire in forum Free Hosting
    Replies: 4
    Last Post: 09-21-2007, 03:53 PM
  4. problems, problems
    By joandajer in forum Free Hosting
    Replies: 5
    Last Post: 01-29-2006, 04:47 PM
  5. more problems after reseting pass
    By rahul2006 in forum Free Hosting
    Replies: 6
    Last Post: 11-10-2005, 08:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers