cpugeek Posted March 6, 2007 Share Posted March 6, 2007 Hi, as some of you know from previous posts; I am making a website for a friend, and yet again I just want your response (specifically on the Contact page) heres the url for the home page: http://www.picsbypros.com/.-Thanks in Advance. Link to comment Share on other sites More sharing options...
PrateekSaxena Posted March 6, 2007 Share Posted March 6, 2007 It shows 404 when you click on Submit I think you should write a JS that would see that all the fields have some data and show an alert box if not! Why aren't the first and the last name required?? Link to comment Share on other sites More sharing options...
jlhaslip Posted March 7, 2007 Share Posted March 7, 2007 Validate that page to see all of the things I would be commenting on. The inline styling can be moved to the style tags. Target the Form and Input selectors to get them to behave. And you should be able to remove all those div tags, too. Let the form elements go where they and to, then use padding and margin to place them.No need to have them in the html, especially with an xhtml DTD. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>An XHTML 1.0 Strict standard template</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link type="text/css" rel="stylesheet" href="./w3c_suggested.css" media="all" /></head><style type="text/css">* html { margin: 0; padding: 0; }form { color: red; background: yellow; width: 25%; border: 1px solid #000; }input { color: #666666; background: #66ffcc; text-align: right; margin-left: 5em; }input.btn { color: white; background: #999999; margin-left: 15em; text-align: center; }span { margin-left: 3em; }</style><body><form action="form_action.asp" method="get"><p> <span class="label" >First name:</span> <input type="text" name="fname" value="Mickey" /> </p><p> <span class="label" >Last name:</span> <input type="text" name="lname" value="Mouse" /> </p><p> <input class="btn" type="submit" value="Submit" /> </p></form></body></html> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now