Skip to content

Commit e361579

Browse files
authored
Cleaner syntax
1 parent d4b3f03 commit e361579

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@
1313
<?php
1414
if (isset($_POST["step2"]))
1515
{
16-
echo "
16+
?>
1717
<h1>Null's Text Decorator</h1>
1818
<br />
19-
<form action=\"index.php\" method=\"post\">
19+
<form action="index.php" method="post">
2020
<br />
21-
Enter your text here → <input type=\"text\" name=\"input\" value=\"". $_POST["input"] ."\" />
21+
Enter your text here → <input type="text" name="input" value="<?php echo $_POST["input"]; ?>" />
2222
<br />
23-
Circled text: <input type=\"text\" name=\"cool1\" value=\"". dec.($_POST["input"]) ."\" />
23+
Circled text: <input type="text" name="cool1" value="<?php echo dec->cycle($_POST["input"]); ?>" />
2424
<br />
25-
<input type=\"submit\" name=\"step2\" />
25+
<input type="submit" name="step2" />
2626
</form>
27-
";
27+
<?php
2828
}
2929
else
3030
{
31-
echo "
31+
?>
3232
<h1>Null's Text Decorator</h1>
3333
<br />
34-
<form action=\"index.php\" method=\"post\">
34+
<form action="index.php" method="post">
3535
<br />
36-
Enter your text here → <input type=\"text\" name=\"input\" />
36+
Enter your text here → <input type="text" name="input" />
3737
<br />
38-
Circled text: <input type=\"text\" name=\"cool1\" />
38+
Circled text: <input type="text" name="cool1" />
3939
<br />
40-
<input type=\"submit\" name=\"step2\" />
40+
<input type="submit" name="step2" />
4141
</form>
42-
";
42+
<?php
4343
}
4444
?>
4545
</body>

0 commit comments

Comments
 (0)