Jump to content

justinh

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by justinh

  1. Hi, I'm using ASP web pages with a PHP server-side script to process a form with method=post. I'm checking the validity of a field in the PHP script, and if it fails there is code in the PHP to pop a message dialog (via javascript). The current workflow is this: 1) user submits form with bad data 2) simultaneously, a dialog is popped saying there is an error, and the form web page is gone and a blank page is shown 3) user selects the OK button and a javascript "history.go(-1)" is executed 4) user is now back to the form with previous values in the fields If the user put in good data, he would be advanced to a 'thank you' page. I'd like to avoid (2) and (3) with the page advancing then going back. In other words, I'd like the error check and message to be processed before the form page is left. Is what I want possible? Note that I can't modify the PHP much, and I'm very green at programming. :-) Thanks, Justin
  2. Thank you all - that is what I needed!
  3. Hi all,I'm a hobby web page developer and need to re-do some simple web sites. I'm just getting into CSS and don't know if this is the right forum or even a valid question . Here is the basic question: Is there a way to use a 'master' page where when you click a menu link it just loads different content, while keeping the header, footer, and menu areas static? Or, is there some way to create multiple content pages that stream/link in all the status areas (via CSS maybe)? I'm asking because if I make a change to a core item (menu, header, etc) I don't want to have to edit ten pages to make them all the same. I'm guessing all these huge commercial web site admins don't have to do that . I'd appreciate any hints or links or info! I think 'template' may be an applicable term here, but HTML editors seem to treat templates as just another HTML file used to create a new one. I'm thinking it may also mean a live template-like thing. Thanks,Justin
×
×
  • Create New...