diff options
Diffstat (limited to 'www/functions.php')
| -rw-r--r-- | www/functions.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/www/functions.php b/www/functions.php index 188c3b1..562b393 100644 --- a/www/functions.php +++ b/www/functions.php @@ -60,14 +60,14 @@ function login(){ } else { foreach ($_GET as $argument => $value) { if(preg_match("/success/",$argument)) - $logout="Successfull loged out!"; + $logout="Log out was succesfull!"; } if($logout){ echo $logout; } - echo "<form method='post' action='/login.php'> + echo "<form method='post' action='/login'> <p>Name: <input type='text' name='username'></p> <p>Password: <input type='password' name='password'> <p><input type='submit' name='submit' value='login'></p> @@ -148,7 +148,7 @@ function invite(){ } echo "Hallo $name - <form method='post' action='/invite.php'> + <form method='post' action='/invite'> <p> E-Mail: <input type='text' name='email'></p> <input type='hidden' name='username' value='$_SESSION[username]'> <input type='submit' name='submit' value='invite'> @@ -231,7 +231,7 @@ function register(){ echo 'Name: ' . $name . ' Value: ' . $value . '<br />'; } - echo "<form method='post' action='register.php'> + echo "<form method='post' action='register'> <p>Name: <input type='text' name='name'></p> <p>pswd: <input type='password' name='pswd'></p> <p>2ndpsdw: <input type='password' name='2ndpswd'></p> @@ -259,4 +259,5 @@ function select(){ echo 'Name: ' . $name . ' Value: ' . $value . '<br />'; $i++; } + echo "Presented by func select()!"; } |
