Jump to content

Search the Community

Showing results for tags 'dynamic dropdown'.

  • 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. Hello, i have a simple database containing three tables subject_code subject_name subject_description i have a dropdown list in which i fetch data of 'subject code' now i want to show the other field data in the textboxes of the selected row item from the drop down list can anybudy help me out in code _________________________________ Code __________________________________________ <?php $connect_error = 'Sorry we are experiencing some connection problems.'; mysql_connect('localhost', 'root', '') or die ($connect_error); mysql_select_db('lr_u') or die ($connect_error); function close(){ mysql_close(); } function query() { $sql = mysql_query("SELECT * FROM ref_subject"); while($rows = mysql_fetch_array($sql)) { echo '<option value="' . $rows['subject_code'] . '">' . $rows['subject_code'] . '" </option>'; } } ?> <h1> Creating an Examination Paper </h1> <p> Welcome to the section where you can create an online examination paper </p> <h3> Subject </h3> <form action="" method="post"> <ul> <li> Subject Code*:<br> <select name="dropdown"> <?php query() ?> </select> <?php close() ?> <br> Select The Subject Code Of the Course. <br> </li> <li> Subject Name*:<br> <input type="text" name="subject_name"> </li> <li> Subject Discription*:<br> <TEXTAREA ROWS=10 COLS=50 type="text" name="subject_description" ></TEXTAREA> </li> <br> <p> kindly sumbit to check if the coudse is valid </p> <input type="submit" value="Submit"> </li> </ul> </form> exam_create.php
×
×
  • 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.