Jump to content

First Input of Forms Not Able to be Selected

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Javadocs

Javadocs

    Newbie

  • Members
  • PipPip
  • 12 posts
Infallible - Guild Application

Would have put this on the PHP forums but I think its an HTML problem.

This is the page I'm having trouble with. As you can see, it's an application form. Every other input field is selectable by mouse, except for the first one. It's almost like something is on top of it because you can't select the "Character Information" text, but you can select text below it and drag up and it works fine.

Here is the code snippet from that area.

	// Include the header code
	include("application/application_header.html");

	echo '
		<form action="application_submitted.php" method="post">
			<h3>Character Information</h3>
			
			<b>What is your character's name?</b><br>
			<input type="text" name="character_name" size="25">
			
			<br><br>
			
			<b>Is your character currently level 80?</b><br>
			<input type="radio" name="character_level_80" value="Yes">Yes
			<input type="radio" name="character_level_80" value="No">No
			
			<br><br>
			
			<b>What server is your character currently on?</b><br>
			<input type="text" name="character_current_server">

And I know I have some depreciated code in there, but I plan to fix that later, and I'm old school :P so don't grill me there. lol.

#2
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
you havnt escaped the " double quotations in the string you echo.
i suggest making the echo like this:

echo " <input type='checkbox' value='yes' >blah blah  ";


yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#3
Javadocs

Javadocs

    Newbie

  • Members
  • PipPip
  • 12 posts

amrosama said:

you havnt escaped the " double quotations in the string you echo.
i suggest making the echo like this:
echo " <input type='checkbox' value='yes' >blah blah  ";
Yea. That's only because there's more being echo'd. I didn't want to post a snippet too long. Even if it was that, it would throw a PHP error when the page loads.

EDIT: And I'm using single quotes, so I don't run into escape character problems.

#4
Javadocs

Javadocs

    Newbie

  • Members
  • PipPip
  • 12 posts
I found the problem. I was somewhat right. There was a rogue transparent image covering about 100px below the header. I set it straight in the style.css file.

Thanks for the help!