Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("localhost","root") or die( 'Error Connecting: ' . mysql_error() );
- mysql_select_db("test",$con) or die( 'Couldn\'t Select Database. ' . mysql_error());
- $request= "SELECT company FROM company";
- $query_result = mysql_query($request);
- if( !$query_result ){
- die('Query Failed. ' . mysql_error( $con ));
- }
- $companySelects = '';
- while($result= mysql_fetch_assoc($query_result)) {
- $companySelects .= '<option value="' . $result['company'] . '">' . $result['company'] . '</option>' . PHP_EOL;
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <form action="post" method="">
- Firstname:<input type="text" name="firstname" size="30">
- <br>
- <br>
- Surname:<input type="text" name="surname" size="30">
- <br>
- <br>
- E-mail Address: <input type="text" name="email" size="60">
- <br>
- <br>
- Company of Interest:
- <select name="organizations">
- <option value="" selected="selected" > Select Company </option>
- <?php echo $companySelects; ?>
- </select>
- <br>
- <br>
- Select Major:<br>
- <input type="radio" name="course" value="softwareEngineering"> Software Engineering <br>
- <br>
- <input type="radio" name="course" value="networkEngineering"> Network Engineering <br>
- <br>
- <input type="radio" name="course" value="businessInfoSys"> Business Information systems <br>
- <br>
- Application Letter: <br>
- <br>
- <textarea name="letter" rows="15" cols="60" ></textarea>
- <br>
- <br>
- Other Attachments:
- Curriculum Vitae:<input type="file" name="cv" size="30">
- Reccomendation: <input type="file" name="recommend" size="30">
- <input type="submit" name="submit" value="Apply">
- <input type="reset" name="reset" value="Clear Form">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement