I have her a input text name="number1" , the user is ask to input integer and into the confirm.php i want to convert the integer i had enter in the index.php into roman numerals. if i input 1 it will echo to 'I' if 2 'II' etc . im desperate for my homework. still not familiar for scripting im new to php. anyway Thank you in advance
index.php:
<form action="confirm_confirm.php" method="post">
<input type="text" name="element1" >
<input type="text" name="number1" >
<input type="text" placeholder="type" name="type1" >
<input type="text" placeholder="metal type" name="metal_type" >
<button type="submit" name="but" >Submit</button>
</form>
And confirm.php:
<?php session_start(); ?>
<?php
$element1 = $_POST['element1'];
$number1 = $_POST['number1'];
$type1 = $_POST['type1'];
$metal_type = $_POST['metal_type'];
if($metal_type == "transition")
{
echo "$element1";
}
?>