Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvprog15 [2020-01-09 13:24] Daniel Viström |
dvprog15 [2020-12-18 10:11] Daniel Viström |
||
---|---|---|---|
Line 41: | Line 41: | ||
} | } | ||
- | if ($ok == true){ // Utförs om inga fel hittats. | + | if ($ok){ |
$message = ' | $message = ' | ||
if($_POST[' | if($_POST[' | ||
Line 85: | Line 85: | ||
include ' | include ' | ||
- | ?></ | + | </ |
+ | |||
+ | Alternativt kan man hantera formuläret så här: | ||
+ | <code php> | ||
+ | <?php | ||
+ | include(' | ||
+ | |||
+ | echo $message; | ||
+ | ?> | ||
+ | |||
+ | <form method=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <?php | ||
+ | include(' | ||
+ | </ | ||
Kolla upp [[http:// | Kolla upp [[http:// | ||