Jump to content

daughn888

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

daughn888's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay I tried that ... Here is the program I'm trying to write to learn php. -------------------------------------------------------------------------------------- <?php //import form information $question1a = $_POST['q1']; $question1b = $_POST['q2']; $question1 = $question1a.', '.$question1b; if ($question1a != "happiness") { echo "Sorry, the answer is results. \n "; echo "Please hit your back button and try again."; } if ($question1b != "floatation") { echo "Sorry, the answer is misc. \n "; echo "Please hit your back button and try again. } if ($question1 == "results, misc.") {          [i][b] <--  This is the line that keeps giving me a parsing error[/b][/i] header('Location: thankyou.html'); ------------------------------------------------------------------------------ What is the syntax for line 18? Thanks again!        
  2. I need to know a command that will display one of my site's web pages if a certain form value equals a certain value. For instance, in a form validating program/quiz I am writing, I have the a "wrong answer" prompt displayed on screen if the user gets the wrong answer... ----------------------------------------- $question1 = $_POST['q1']; if ($question1 != "results") { echo "sorry, wrong answer. Please hit your browser's back button and try again. "; } ------------------------------------------ but if the user types in the correct answer, I would like the php script to automatically display in the same window another of my html pages.  What command would I use to automatically pull up another html page? Any help would be appreciated. Thanks
×
×
  • 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.