Given a php form that submits to it’self,
via <?php echo $_SERVER[‘PHP_SELF’];?>
Ve bazı html ve biriyle aynı form Gönder düğmesini
<label for="submit">Submit</label>
<input id="submit" type="submit" value="Submit Info:" /><br />
How do I set it up, such that when the user has finished inputting all the relevant information on the form(one, form.php), without any errors, the session is destroyed, after pressing the submit button.
Ben bu oturumu başlatır biliyorum:
<?php session_start() ?>
Formun üstünde.
Ve bu oturum değişkenleri yok
session_destroy();
Ben böyle bir şey yapmak zorunda kalacaktı:
$_SESSION[‘submit’] = ‘submit’;
I am trying to avoid creating sessions for each variable on my form, for example,
isim
yaş
seks
It sounds like it would be a lot of work to create sessions for each and every variable on a given form, that’s why I am here seeking answers, in the meantime I will read more on sessions, thank you for not flaming the newb.