APHutchins 0 Newbie Poster

Hiya,

I want a simple register, but really struggling with the code. I am simply not a coder, although I can process some.

Here's one example:

<body>
<table width="1000" height="450" border="0">
  <tr align="center">
    <td height="150" colspan="2"><p class="Welcome">Please Select your course:</p></td>
  </tr>
  <tr align="center">
    <td><form id="form1" name="form1" method="post" action="index.html">
      Course: 
      <select name="CourseList" id="CourseList"> <?php echo item();?>
        <option></option> 'I would like this to be populated from a data source.
      </select>
      <br />
Name: 
      <select name="DelegateName" id="DelegateName">
        <option></option> 'I would like this to be filled from a data source, depending on the answer to CourseList.

      </select>
        <br />
<input type="submit" name="Submit" id="Submit" value="Submit" />
    </form></td>
  </tr>
</table>
</body>

Simple at the moment (my code, NOT the solution!). I realise I will almost certainly need some code in the header, and potentially change from a .html file.

The file would look something like (if using csv):
Course,Delegate,Booked_In
Microsoft Excel,Adam,Yes (If it's been submitted from the form)
Microsoft Excel,Burt, (Either no or blank if it's not been submitted from the form)
Microsoft Excel,Sam,
Microsoft Excel,Bob,
Microsoft Excel,Freddie,
Microsoft Excel,Bexs,
Microsoft Word,John,
Microsoft Word,Phil,
Microsoft Word,Mike,
Microsoft Word,Megan,
Microsoft Word,Whatchamacallit,

The other area I'd like to complete has:

<table width="1000" height="450" border="0">
  <tr align="center">
    <td height="76" colspan="2"><p class="Welcome">Please Complete:</p></td>
  </tr>
  <tr align="center">
    <td><form id="form1" name="form1" method="post" action="index.html">
      <p>
        <label for="Name">Name: </label>
        <input type="text" name="Name" id="Name" />
      </p>
      <p>
        <label for="Company">Company: </label>
        <input type="text" name="Company" id="Company" />
      </p>
      <p>
        <label for="ToSee">Here to See: </label>
        <input type="text" name="ToSee" id="ToSee" />
      </p>
      <p>
        <input type="submit" name="Submit" id="Submit" value="Submit" />
      </p>
<p>&nbsp;</p>
    </form></td>
  </tr>
</table>
</body>

I'd like this to add a line to a csv (or other) like:
Name,Company,ToSee

Each day the CSV would be saved and replaced.

Would prefer to be local, but doesn't have to be. Would also need two users - this would then be a register (quelle surprise!) at reception on a tablet, so all touch-screen.

I realise that I am asking a helluva lot; I simply can't find anything online that's not confusing me as I really need a starting point. And yes, I know the posting of both snippets are simply going back to the index file at the moment! :)

Any help VERY much appreciated!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.