Is it possible to pass a variable to an include, at the include call, and then use that variable in the include file?
e.g. something like this:
// include this somewhere
<?php include 'includes/contact_form.php', $platform='desktop' ?>
// and this somewhere else
<?php include 'includes/contact_form.php', $platform='mobile' ?>
// then inside the contact_form.php file use them like
<input id="name_<?echo $platform ?>" type="text">
<input id="email_<?echo $platform ?>" type="email">
// which would result in:
<input id="name_desktop" type="text">
<input id="email_desktop" type="email">
// and
<input id="name_mobile" type="text">
<input id="email_mobile" type="email">