Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['liste1']))
- {
- //si la liste a été "postée" c ad choix fait
- $liste1=$_POST['liste1'];
- }
- else
- {
- $liste1=-1;
- }
- ?>
- <form name="form1" method="post" action="test2.php">
- <select name="liste1" onchange="this.form.submit()">
- <Option>choisir</Option>
- <Option>choisir2</Option>
- <Option>choisir3</Option>
- <?php
- if($liste1== $_POST['liste1']) print 'selected="selected"';
- ?>
- </select>
- </form
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement