Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

zekena / Unit-calculator

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Unit-calculator
  • categories
  • test.php
Find file
BlameHistoryPermalink
  • zekena's avatar
    project implementation. · 036803c4
    zekena committed 6 years ago
    036803c4
test.php 388 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
 
(isset($_POST["company"])) ? $company = $_POST["company"] : $company=1;
 
?>
 
<form>
<select id="company" name="company">
<option <?php if ($company == 1 ) echo 'selected' ; ?> value="1">Apple</option>
<option <?php if ($company == 2 ) echo 'selected' ; ?> value="2">Samsung</option>
<option <?php if ($company == 3 ) echo 'selected' ; ?> value="3">HTC</option>
</select>
</form>