I have a PHP form with a html section at the bottom. There are 14 input text fields on the form and I want the form to send of the email as it should do and also take the name field, pass it to the following web page and display it in a <div> tag.
I think the relevant code looks like this
PHP section
$FName = 'Sub Contractor';
$FWebsiteAfter = 'http://www.website.com/inductionCardSub.html';
$FieldName[0] = 'Your Name';
$Hida2 = trim($_POST['hida2']);
HTML section
<form method="post" action="" enctype="multipart/form-data">
<input type="text" name="FieldData0" value="<? echo $FieldData[0] ?>" maxlength="100" size="30" /><? echo ' ' . $mmsg[1];
?>
<input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none" />
<input type="submit" class="btn" value="SUBMIT" name="Submit" />
</form>
Can I capture the input from FieldData0 and send it to the next webpage by Javascript or as a cookie? Or to have then confirm their name in a second form and automatically capture it before the submit button.
I have no script on the following page yet.
Thanks