Доброе утро, я немного изменил учебный код, чтобы он отображал разные формы создания учетной записи соответственно имени версии, введенному в форме ввода, называемой версией. Какое бы имя версии я ни напечатал, здесь появится опция, предназначенная для полной версии. Я использую бутстрап и jquery. Что с ним не так?
<?php
if(isset($_SESSION['username']))
{
?>
<div align="center">
<h1>Welcome - <?php echo $_SESSION['username']; ?></h1><br />
<?php if ($_SESSION['version'] = "full") { ?>
<form action="fullfinalinserting.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-4 form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="yname"> Username</label>
<input type="text" id="yname" name="yname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="url">Your Site URL</label>
<input type="text" id="url" name="url" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact1"></label>
<input type="text" id="contact1" name="contact1" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact2"></label>
<input type="text" id="contact2" name="contact2" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact3"></label>
<input type="text" id="contact3" name="contact3" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact4"></label>
<input type="text" id="contact4" name="contact4" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="farewell"></label>
<input type="text" id="farewell" name="farewell" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="ppname"></label>
<input type="text" id="ppname" name="ppname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color1" >
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color2" >
</div>
</div>
<div class="row">
<div class="col-md-12 form-group">
<label for="message"></label>
<textarea name="message" id="message" class="form-control " cols="30" rows="8" required></textarea>
</div>
</div>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile" multiple class="btn btn-primary" required>
</fieldset>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile2" multiple class="btn btn-primary" required>
</fieldset>
<div class="g-recaptcha" data-sitekey="6Ld_eGoUAAAAAN-KLDMr1b3Kepypf3OBp0hNWF_H"></div>
<div class="row">
<div class="col-md-6 form-group">
<input type="submit" value="Send Message" name="submit" class="btn btn-primary">
</div>
</div>
</form>
<a href="#" id="logout">Logout</a>
</div>
<?php
} else if ($_SESSION['version'] = "deluxe") { ?>
<form action="deluxefinalinserting.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-4 form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="yname">Username</label>
<input type="text" id="yname" name="yname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="url"></label>
<input type="text" id="url" name="url" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="email"></label>
<input type="email" id="email" name="email" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact1"></label>
<input type="text" id="contact1" name="contact1" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact2"></label>
<input type="text" id="contact2" name="contact2" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact3"></label>
<input type="text" id="contact3" name="contact3" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact4"></label>
<input type="text" id="contact4" name="contact4" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="ppname"></label>
<input type="text" id="ppname" name="ppname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color1" >
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color2" >
</div>
</div>
<div class="row">
</div>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile" multiple class="btn btn-primary" required>
</fieldset>
<div class="g-recaptcha" data-sitekey="6Ld_eGoUAAAAAN-KLDMr1b3Kepypf3OBp0hNWF_H"></div>
<div class="row">
<div class="col-md-6 form-group">
<input type="submit" value="Send Message" name="submit" class="btn btn-primary">
</div>
</div>
</form>
<?php
} else if ($_SESSION['version'] = "standard") { ?>
<form action="standardfinalinserting.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-4 form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="yname">Userbame</label>
<input type="text" id="yname" name="yname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="url"></label>
<input type="text" id="url" name="url" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="email"></label>
<input type="email" id="email" name="email" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="ppname"></label>
<input type="text" id="ppname" name="ppname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color1" required>
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color2" required>
</div>
</div>
<div class="row">
</div>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile" multiple class="btn btn-primary" required>
</fieldset>
<div class="g-recaptcha" data-sitekey="6Ld_eGoUAAAAAN-KLDMr1b3Kepypf3OBp0hNWF_H"></div>
<div class="row">
<div class="col-md-6 form-group">
<input type="submit" value="Send Message" name="submit" class="btn btn-primary">
</div>
</div>
</form>
<?php
} else if ($_SESSION['version'] = "premium") { ?>
<form action="premiumfinalinserting.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-4 form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="yname">Username</label>
<input type="text" id="yname" name="yname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="url"></label>
<input type="text" id="url" name="url" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="email"></label>
<input type="email" id="email" name="email" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact1"></label>
<input type="text" id="contact1" name="contact1" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact2"></label>
<input type="text" id="contact2" name="contact2" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact3"></label>
<input type="text" id="contact3" name="contact3" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="contact4"></label>
<input type="text" id="contact4" name="contact4" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="farewell"></label>
<input type="text" id="farewell" name="farewell" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="ppname"></label>
<input type="text" id="ppname" name="ppname" class="form-control " required>
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color1" >
</div>
<div class="col-md-4 form-group">
<label for="color"></label>
<input type="color" id="color" name="color2" >
</div>
</div>
<div class="row">
<div class="col-md-12 form-group">
<label for="message"></label>
<textarea name="message" id="message" class="form-control " cols="30" rows="8" required></textarea>
</div>
</div>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile" multiple class="btn btn-primary" required />
</fieldset>
<fieldset>
<legend></legend>
<input type="file" name="uploadfile2" multiple class="btn btn-primary" required />
</fieldset>
<div class="g-recaptcha" data-sitekey="6Ld_eGoUAAAAAN-KLDMr1b3Kepypf3OBp0hNWF_H"></div>
<div class="row">
<div class="col-md-6 form-group">
<input type="submit" value="Send Message" name="submit" class="btn btn-primary">
</div>
</div>
</form>
<?php
} }
else
{
?>
<div align="center">
<button type="button" name="login" id="login" class="btn btn-success" data-toggle="modal" data-target="#loginModal">Login</button>
</div>
<?php
}
?>
</div>
<br />
</body>
</html>