Jump to content

Search the Community

Showing results for tags 'dropdown list mysql php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi at All I have the problem, that I do not know, how to get the value from the selected option in my dropdown list. Hope someone can help me. I have the follow code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>File Uploader</title> <link href="css/reset.css" rel="stylesheet" type="text/css" /> <style type="text/css"> body { margin: 10px; font: 62% Tahoma, Arial, sans-serif; } #main_container{ font-size: 1.4em; } h2 { font-size: 2em; padding-bottom: 20px; } </style> <link href="css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css" /> <link href="css/fileUploader.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.6.2.min.js" type="text/javascript"></script> <script src="js/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script> <script src="js/jquery.fileUploader.js" type="text/javascript"></script> </head> <body> <div id="main_container"> <h2>Bilder Girls Uploader</h2> <p> </p> <p> <?php mysql_connect("localhost:8888", "root", "root") or die("Connection Failed"); mysql_select_db("mydb")or die("Connection Failed"); $query = "SELECT idgirls,name FROM girls"; $result = mysql_query($query); ?> <form name="form1" method="POST" action="<?=$PHP_SELF?>"> <select name="select1" onchange="this.form1.submit();" method="post"> <?php while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { ?> <option value="<?php echo $line['idgirls'];?>"> <?php echo $line['name'];?> </option> <?php } ?> </select> </form> </p> <p> </p> <p> </p> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="userfile" class="fileUpload" multiple> <input type="hidden" name='girl' value='<?php echo $_POST['select1'];?>' /> <button id="px-submit" type="submit">Upload</button> <button id="px-clear" type="reset">Clear</button> </form> <script type="text/javascript"> jQuery(function($){ $('.fileUpload').fileUploader(); }); </script> </div> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.