Can someone change this to make the text BEFORE the boxes instead of AFTER the boxes. And add a space so that it isn't so close together. <form action="form.php" method="post"><p> <label><input type="text" name="name" id="name" value="<?php get_data("name"); ?>" /> Name</label><br /> <label><input type="text" name="email" id="email" value="<?php get_data("email"); ?>" /> E-mail</label><br /> <label><input type="text" name="state" id="State" value="<?php get_data("city"); ?>" /> City</label><br /> <label><input type="text" name="location" id="location" value="<?php get_data("state"); ?>" /> State</label><br /> <label><textarea name="comments" id="comments"><?php get_data("comments"); ?></textarea> Comments</label><br /> <input type="submit" name="submit" id="submit" value="Send" /> </p></form> Code (markup):
A 'please' goes a long way. <form action="form.php" method="post"><p> <label>Name <input type="text" name="name" id="name" value="<?php get_data("name"); ?>" /></label><br /> <label>E-mail <input type="text" name="email" id="email" value="<?php get_data("email"); ?>" /></label><br /> <label>City <input type="text" name="state" id="State" value="<?php get_data("city"); ?>" /></label><br /> <label>State <input type="text" name="location" id="location" value="<?php get_data("state"); ?>" /></label><br /> <label>Comments <textarea name="comments" id="comments"><?php get_data("comments"); ?></textarea></label><br /> <input type="submit" name="submit" id="submit" value="Send" /> </p></form> HTML:
Thank you, and sorry. Could you (or anyone) please edit the code to put a space between the text boxes and text so that it isn't so close together, and even it out so that it doesn't look sloppy like mine and so that all the text boxes are aligned vertically with each other and not to the left and right of each other. I would appreciate it. I don't know what I'm doing and the html guides I found on google don't explain how to align php coding or add spaces to php forms. They give examples of their own forms that are aligned but I don't know how to align them with my code. I tried using Web Page Maker but it only shows "HTML" in a box instead of showing the textboxes and text it just says "HTML" on this box so I can't use Web Page Maker to edit the boxes using my mouse. I gotta do it with code.
You can use html in php code but you must display it as an echo. Ex: <?php echo "<div align=right>your input box code</div>"; ?> also if you need to place quotes around anything you can usually leave them off but in the events that you need them use '' Not sure if i'm way off of your problem but hope it helps some