KDM Posted June 21, 2011 Share Posted June 21, 2011 $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>'; Quote Link to comment Share on other sites More sharing options...
mikesta707 Posted June 21, 2011 Share Posted June 21, 2011 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? Quote Link to comment Share on other sites More sharing options...
KDM Posted June 21, 2011 Author Share Posted June 21, 2011 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 Quote Link to comment Share on other sites More sharing options...
WebStyles Posted June 22, 2011 Share Posted June 22, 2011 that's more of a css question and has nothing to do with php. Quote Link to comment Share on other sites More sharing options...
KDM Posted June 22, 2011 Author Share Posted June 22, 2011 I got it. You can just use the placeholder attribute. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.