Jump to content

Question...How do I place my labels inside the input text field in this?


KDM

Recommended Posts

$d[]='
  <div id="contact">
	  	<div style="margin:0 auto; font-size:12pt; width:500px; "><br />use form for general info, report images, and to request advertising info. you can also send an email to info@*********.net<br />
'.$msg.'
			<form id=contact_form" method="post" action="contact.php" style="width:500px; margin:0 auto; margin-top:20px; text-align:left;">
	 			<span style="float:left; width:120px; line-height:23px;">first name:</span><div style="clear:both;"></div>
	 			<span style="float:left; width:120px; line-height:23px;">last name:</span><input type="text" name="first_name" style="font-size:12px; height:15px; width:250px; color:#1D5074; border:0;" value="'.$_POST['first_name'].'" /><div style="clear:both;"></div>
	 		    <span style="float:left; width:120px; line-height:23px;">Email:</span><input type="text" name="email" style="font-size:12px; height:15px; width:250px; color:#1D5074; border:0;" value="'.$_POST['email'].'" /><div style="clear:both;"></div>
	 		    <span style="float:left; width:120px; line-height:23px;">Message:</span><textarea name="message" style="font-size:12px; height:100px; width:250px; color:#1D5074; border:0;">'.$_POST['message'].'</textarea><div style="clear:both;"></div>
	 		    <input type="submit" name="contact_sub" style="margin-left:179px; margin-top:8px;" value="Contact Us" />
	 		</form>
	 	</div>
  </div>';

Link to comment
Share on other sites

Not really sure what you mean by labels, and since you decided to just post code and completely leave out an explanation of what you want, all I can really do is ask for more info. What do you want to be output, and what is currently being output?

Link to comment
Share on other sites

Not really sure what you mean by labels, and since you decided to just post code and completely leave out an explanation of what you want, all I can really do is ask for more info. What do you want to be output, and what is currently being output?

 

sorry about that. here's a good example. go here not logged in

 

tumblr.com

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.