www.webdeveloper.com
Results 1 to 7 of 7

Thread: [RESOLVED] Form input - can't enter text

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    3

    resolved [RESOLVED] Form input - can't enter text

    Hi

    I'm creating a small website with a game for a customer. They wanted to connect everything with Facebook, so I implemented the Facebook registration plugin. (https://developers.facebook.com/docs.../registration/ with XFBML).

    Now the customer wanted a second registration/login-box.
    Here's my form:
    HTML Code:
    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    	Name: <input type="text" name="name"><br>
    	E-Mail: <input name="email"></textarea><br>
    	I'm already a customer:
    	<input type="radio" name="customer" value="yes">
    	<input type="radio" name="customer" value="no">
    	<input type="submit" name="Button" value="Register">
    </form>
    Now there's a problem: I can't enter text into those fields. I made an empty HTML-file with just the form and it works. I have no idea what could be causing that.

    I can access it via Tab and can click it so I can see the values I've entered in other fields. I can choose between the radio buttons by pressing the left/right arrow key. But I can't write or select the text or anything.

    Any idea?

    Phil

  2. #2
    Join Date
    Nov 2011
    Posts
    47
    It works fine for me in firefox and IE 7.

    I did fix your code a bit after I tried your code. You don't need the </textarea>

    I labeled your radio buttons
    and added the type="text" to the email input.

    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    Name: <input type="text" name="name"><br>
    E-Mail: <input type="text" name="email"><br>
    I'm already a customer:
    <input type="radio" name="customer" value="yes">Yes
    <input type="radio" name="customer" value="no">No
    <input type="submit" name="Button" value="Register">
    </form>

  3. #3
    Join Date
    Nov 2011
    Posts
    3
    Yes, I saved it in a separate file (registration.php). If I open that file directly, it works like a charm, I can enter text as I like. But when this file is included or the code is written in the other file, I can't edit the content.

    Something from my site must be blocking this, but I have no idea what.

  4. #4
    Join Date
    Nov 2009
    Location
    Timisoara
    Posts
    48
    I have myself struggled to find the way out of coding misteries like this but I am now using a remotely hosted service to help me with forms, it spares a lot of time.

  5. #5
    Join Date
    Nov 2011
    Posts
    3
    I hate myself. Co-worker sneaked a "-webkit-user-select: none;" in the css-file...

  6. #6
    Join Date
    Mar 2013
    Posts
    4
    Have this prob solved?
    Cause I cant see the solution?
    I also am having the same problem.
    I cannot enter text when I separate my file html and JavaScript.
    But it works when I put the codes into one file.
    What is the cause of this problem?

  7. #7
    Join Date
    Jul 2013
    Posts
    1

    Arrow

    Try this code

    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    Name: <input type="text" name="name"><br>
    E-Mail: <input type="text" name="email"><br>
    I'm already a customer:
    <input type="radio" name="customer" value="yes">
    <input type="radio" name="customer" value="no">
    <input type="submit" name="Button" value="Register">
    </form>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles