I'm currently making an auto-signature in PHP & HTML.
The variable 'layout' is the variable I want to change. It contains the structure of the Html signature (Background, logo, Structure).
$layout = file_get_contents('./SIG/SAELEN.html', FILE_USE_INCLUDE_PATH);
$layout1 = file_get_contents('./SIG/GUIL.html', FILE_USE_INCLUDE_PATH);
The Structure is supposed to change, depending on this :
<select class="form-control" id="sel1" id="Name" name="Sender[department]">
<option value="1">Choix1</option>
<option value="2">Choix2</option>
<option value="3">Choix3</option>
<option value="4">Choix4</option>
<option value="5">Choix5</option>
<option value="6">Choix6</option>
</select>
I wish to change the $layout
value depending, on the user Selection without having to refresh the Page.
Thanks for taking the time to read, I'm looking forward to hearing your suggestions.