Jump to content

Recommended Posts

My contact form is acting up strangely, it's not coming out the way it's intended to:

 

http://jarodsworld.ismywebsite.com/website/contact.php

 

See how that box goes all the way to the right and outside of the content area of the site? I need that to be inside of the content area, it's acting retarded for some reason though, I can't figure out the problem.

Link to comment
https://forums.phpfreaks.com/topic/182468-contact-form-problem/
Share on other sites

I dont see 2 of the same ids in this code  :(:

		<div id="contact_form">
		<form action="" method="post">
			<label for="name">Your Name:</label> <br />
			<input type="text" name="name" id="name" /> <br />
			<label for="email">Your Email:</label> <br />
			<input type="text" name="email" id="email" /> <br />
			<label for="content">Content:</label> <br />
			<textarea name="content" id="content"></textarea>
		</form>
		</div>

Link to comment
https://forums.phpfreaks.com/topic/182468-contact-form-problem/#findComment-963003
Share on other sites

I do:

 

<div id="content">
<div id="page">

	<h3>Contact Me</h3>
	<p>Feel free to send me a message, this does not go to my email so don't even think about spamming me -.^. I'm a web developer, have you <b>not</b> read my <a href="./about.php">about page</a> yet? (If not, you should )</p>
	<p><b>If you don't feel like entering your real name, just put your <i>Aerix forum name</i> instead.</b></p>

	<div id="contact_form">
	<form action="" method="post">
		<label for="name">Your Name:</label> <br />
		<input type="text" name="name" id="name" /> <br />
		<label for="email">Your Email:</label> <br />
		<input type="text" name="email" id="email" /> <br />

		<label for="content">Content:</label> <br />
		<textarea id="content"></textarea>
	</form>
	</div>
</div>
</div>

Link to comment
https://forums.phpfreaks.com/topic/182468-contact-form-problem/#findComment-963066
Share on other sites

simply using classes makes things much easier, after reading up on the difference the other day i only found that id's limit your pages more and that the correct use of classes would allow you to style all of your elemnts appropriatley anyway.

Link to comment
https://forums.phpfreaks.com/topic/182468-contact-form-problem/#findComment-963229
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.