What this short program does the user enters in a sentence and a number and when she/he clicks submit it will repeat the sentence typed in by the user the amount of times that the user specifys. I do have that working fine but what I can't figure out is how to make each of the sentences centered and one other the other. I know what the code is for centering = "text-align: center" but I keep getting errors everytime I try to make it center. I'm not exactully sure what line I would add it to either. I also know to make one sentence appear under the other you can use \n or \r or
but again I'm getting errors and I don't know exactly where to insert it into the program either. Please help.
<h2 style="text-align: center">Q4 Form</h2>
<form name="Q4" action=
"process_Q4.php"
method="post">
<p>Sentences: <input type="text" name="wSentence" /></p>
<p>Number: <input type="text" name="anumber" /></p>
<p><input type="reset" value="Clear Form" />
<input type="submit" name="Submit" value=
"Send Form"/></p>
</form>
<html>
<?php
$sentences = $_POST['wSentence'];
$number = $_POST['anumber'];
$string = $sentences;
$repeat = $number;
echo str_repeat($string,$repeat)
?>
<html>