Hello, I want to build a questionaire where the user is guided through five
pages of questions. How can I program PHP that the user gets to the second
page after pushing the "Submit"-Button?
My solution printed here doesn't work.
Any hints are greatly apreciated!

S. Maier

if ($submit) {
 // process form
require ('.htmypasswd');
$verbnr = mysql_connect ($dbhost,$dbuser,$dbpasswd);
$db = mysql_connect($dbhost,$dbuser,$dbpasswd);
$sql = "INSERT INTO frage3 (a1,a2,a3,be_fe01,be_fe02) VALUES
$result = mysql_query($sql);
header ("Location: http://www.example.com";);
} else{
  // display form

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to