Jump to content
php.lv forumi

PHP dropdown list


Recommended Posts


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>
<input type="submit" value="send">

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.

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.


  • Create New...