in the picture I made it say "@SuBMiT@" by changing the url to say this:
form.php?submit=@SuBMiT@
you can make the button say anything by changing what "form.php?submit" equals and example would be:
form.php?submit=Subm1t
then your button would say "Subm1t"
Code: Select all
<?php
$submit = $_GET['submit'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
echo ( $firstname . " " . $lastname );
?>
<html>
<head>
<title>HTML Forms Example</title>
</head>
<body>
<!-- We are now starting our form -->
<form action="form.php" method="post">
<!-- Once we have made our form...you need to add inputs to it -->
<? echo ( "Firts Name" ); ?>
<br />
<input type="text" name="firstname">
<br />
<? echo ( "Last Name" ); ?>
<br />
<input type="text" name="lastname">
<input type="submit" value="<? echo ( $submit ); ?>">
</form>
</body>
</html>