Show sourcecode
The following files exists in this folder. Click to view.
test/
.idea/
audio/
blokket.php
blokket2.php
dbtest.php
edit-stylesheet-process.php
edit-stylesheet.php
edit-stylesheet_original.php
ex/
favorites.php
img/
incl/
kmom03_get.php
kmom03_getform.php
kmom03_postform.php
kmom03_validate.php
login.php
login_MOS.php
me.php
report.php
select-stylesheet-process.php
select-stylesheet.php
select-stylesheet_original.php
social.php
src/
style/
style-default.php
style-default_original.php
style.php
style_original.php
test.php
viewsource.php
kmom03_getform.php
1 lines UTF-8 Unix (LF)
<?php
include("incl/config.php");
$pageTitle = "Skriv ut innehållet i variabeln \$_GET";
?>
<?php include("incl/header.php"); ?>
<article class="border" style="width:70%;">
<h1>Formulär och get-metoden</h1>
<form method="get" action="?">
<fieldset>
<legend>Exempel på formulär med get-metoden</legend>
<p>
<label for="input1">Användarkonto:</label><br>
<input id="input1" class="text" type="text" name="account">
</p>
<p>
<label for="input2">Lösenord:</label><br>
<input id="input2" class="text" type="password" name="password">
</p>
<p>
<input type="submit" name="doLogin" value="Login">
</p>
</fieldset>
</form>
<h1>Visa innehållet i <code>$_GET</code></h1>
<p>Du anropade sidan med följande querystring:
<code><?php echo htmlentities($_SERVER['QUERY_STRING']); ?></code></p>
<p><code>$_GET</code> innehåller följande:</p>
<pre><?php print_r($_GET); ?></pre>
</article>
<?php include("incl/footer.php"); ?>