Jump to content
php.lv forumi

PHP dropdown list


krumins

Recommended Posts

Sveiki!

Esmu iesaaceejs un nepiecieshama paliidziiba saistiibaa ar PHP drop down list.

<form method="post" action="form.php">
<select name="zanri">
<option value="zanrs1">Zanrs 1</option>
<option value="zanrs2">Zanrs 2</option>
<option value="zanrs3">Zanrs 3</option>
</select>
<input type="submit" value="send">
</form>

Zanri:
<?php
print $_POST['zanri'];
?>

Kaa uztaisiit taa, lai izveeloties attieciigo zanru no lista, atver foldera saturu (folderaa viens HTML fails un divi .jpg faili). 

Sobriid pie PHP rezultata uzrada tikai value ierakstu.

 

Doma liidziiga kaa shajaa video-  https://www.youtube.com/watch?v=EOV7Xi4_7Bw&feature=youtu.be

 

Varbuut kaads var ieteikt kaadu tutorialu.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...