Mintoris Forum

Author Topic: HTML Get not processing Textarea and Select Multiple input types  (Read 395 times)

Alan McGee

  • Jr. Member
  • **
  • Posts: 8
I am trying to design a maintenance reporting and billing program.  Build a test form in HTML but cannot get all of the form data back into Mintoris.  Any suggestions would be appreciated.

Please see sample program below.  I borrowed the some of the code from one of the programs on the forum, a very helpful resource.  I can't seem to get an attachment to actually attach to this post so I am just going to paste the code below.


html$ = ""
title$ = "Alan's Playground"
lname$ = "McGee"
txt$ = "this is some text"

 html$ = "<html><head><style type='text/css'>body {background-color:steelblue}</style></head>"


  html$ = html$ + "<body>" + title$ + "<hr /><form method='post'>"
 
html$ = html$ + " <br />First name: <input type='text' name='first_name'  /> <br> Last name: <input type='text' name='last_name' value='" + lname$ +"' /><br />"



 html$ = html$ + "Select course(s): <input type='checkbox' name='math' value='on'> Math <input type='Checkbox' name='physics' value='on'> Physics<br /> "

html$ = html$ + "Date: <input type='date' name = 'dateonly' /><hr />Date Time Local: <input type='datetime-local' name = 'dttmlocal'><hr />"

html$ = html$ + "<select multiple name = 'multi'  row ='10'> <optgroup label='Group 1'> <option value='1A'>  Option 1A </option> <option value='1B'> Option 1B </option>  <option value='1C'> Option 1C</option> </optgroup> <optgroup label='Group 2'> <option value='2A'> Option 2A </option> <option value='2B'> Option 2B </option> </optgroup> </select><hr />"

html$ = html$ + "Select Mutiple:<br><select multiple name = 'Numbers'>  <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> <option value='4'>Four</option> <option value='5'>Five</option> </select><hr />"

html$ = html$ + "Select:<br><select name = 'number'>  <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> <option value='4'>Four</option> <option value='5'>Five</option> </select><hr />"

html$ = html$ +" <p>Choose Subject<br /><input type='radio' name='subject' value='Chemistry' /> Chemistry <input type='radio' name='subject' value='Gym' /> Gym" 

html$ = html$ + "<p>The Dropdown List<br /><select mutiple='yes' name='dropdown'> <option value='Waltz' selected>Waltz</option> <option value='Chicken Dance' selected>Chicken Dance</option><option value='Texas 2 Step'>Texas 2 Step</option> </select><br />"

html$ = html$ + "Description1 : <br /> <textarea rows='15' cols='50' name = 'Note'>test1. </textarea><br /><hr />"

html$ = html$ + "<table border='1'> <tr> <th>Name</th> <th>Internal</th> <th>Internal 1</th> <th>Internal 2</th> <th>Internal 3</th> <th>Internal 4</th> </tr>"

html$ = html$ + "<tr> <td><input type='submit' name ='button1' value='100'/> </td> <td>" + lname$ + "</td> <td>56</td>     <td>69</td> <td>85</td> <td>91</td> </tr>"

html$ = html$ + "<tr> <td><input type='submit' name ='button1' value='101' /> </td> <td>Franklin</td> <td>88</td>      <td>87</td> <td>95</td> <td>92</td> </tr>"

html$ = html$ + "<tr> <td> <input type='submit' name ='button1' value='102' /> </td> <td>Merbin</td> <td>81</td>      <td>88</td> <td>87</td> <td>89</td></tr>"

html$ = html$ + "<tr> <td> <input type='submit' name ='button1' value='104'/> </td> <td>Deepa</td> <td>88</td> <td>59</td> <td>62</td> <td>67</td> </tr> </tr>  </table><hr />"

html$ = html$ + "<table border='1'> <tr> <th>Prompt</th> <th>Answer</th> </tr>"

html$ = html$ + "<tr> <td>First Name</td> <td> <input type='text' name='first_name1'  /> </td> </tr>"

html$ = html$ + "<tr> <td>Last Name</td> <td> <input type='text' name='last_name1' value=" + lname$ +" /> </td> </tr> </table><hr />"


html$ = html$ + "<p><input type='submit' name ='button1' value=" + lname$ + " /> "

html$ = html$ + "<p><input type='submit' name ='button1' value=" + lname$ + " /> "

html$ = html$ + "<p><input type='submit' name ='button1' value=" + lname$ + " /> "

 html$ = html$ + "</form></body></html>"

HtmlBrowser on
HtmlLoadData html$
htmlinput type$, url$, data$
htmlbrowser off
print data$