Source code for: regform.php

<HTML>
<HEAD>
<TITLE>MU Tech Seminar 2 RSVP Form - Modified for Q7310 Challenge 2</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>

<BODY bgcolor="#003366" text="#000099" link="#0000FF" vlink="#FF0000" alink="#00FF00">
<DIV align="center">

<?php
// prtBR = Function to print a line of text and move to a NEW line
//
FUNCTION prtBR($text){
       PRINT (
"$text <br> \n");
}

prtBR ("<FONT color='yellow'> <h1> Sample Form before DATA processing </h1> </FONT>");

?>
</DIV>

<FORM method=post action="http://us.1.p.webhosting.yahoo.com/forms?login=rrchubbard">
  <CENTER>
    <IMG src="GPC_banner2.jpg" width="600" height="83" alt="GPC Banner">
</CENTER>
    
  <TABLE border=1 cellspacing=0 cellpadding=0 width="99%" bgcolor="#000099" bordercolor="#000099">
  <TR>
  <TD bgcolor="#000099" >
  <P  align=center style='text-align:center'><SPAN  style='color:#33CCCC'><FONT color="#33CCCC">
    Professional Development “T4” Seminar Series<BR>
    <I><B> Tips, Tricks, Timesavers, and Traps </B></I>&quot;T4&quot;:<BR>
    <I>Using Technology for Graduate Student Research and Scholarship</I></FONT></SPAN></P>
  </TD>
  <TD width=113 valign=middle bgcolor="#000099" align="center">
  <P  align=center style='text-align:center'><B> <SPAN   style='color:#33CCCC'><IMG width=89 height=90 src="academic_computer.gif" alt="Academic Computer Pic"></SPAN></B></P>
  </TD>
  </TR>
  <TR>
  <TD bgcolor="#000099">
  <P  align=center style='text-align:center'><FONT color="#33CCCC">Saturday,
    October 9, 2004 * Memorial Union Stotler Lounge * 9am - 2pm
    </FONT></P>
  </TD>
  </TR>
  </TABLE>
  <TABLE width=99% border=1 cellspacing=10 cellpadding=0 bordercolor="#33CCCC">
  <TR>
  <TD valign=top bgcolor="#FFFFFF" >
  <DIV align="left">
    <P> <B><FONT color="#FF0000">All Fields are required</FONT></B>.<BR>
      GPC will send a confirmation email with additional details
      the week of October 3.</P>
    <P><B>Name:</B> First
      <INPUT type=text name="Fname" size=25>
      Last:
      <INPUT type=text name="Lname" size=35>
      <BR>
      Your MU email:
      <INPUT type="text" name="your_email_address" size=45>
      <FONT size="-1">(for example: <FONT face="Arial, Helvetica, sans-serif" color="#999999">
      pawprint@mizzou.edu</FONT>) </FONT><BR>
      <B>REPEAT</B> MU email:
      <INPUT type="text" name="your_email_address2" size=45>
      <BR>
    </P>
    <P><B>Your Academic Unit</B>:
      <SELECT name="Unit">
        <OPTION> Agriculture (CAFNR)
        <OPTION> Natural Resources
        <OPTION> Arts and Science
        <OPTION> Fine Arts
        <OPTION> Music
        <OPTION> Business (COB)
        <OPTION> Education (COE)
        <OPTION> SISLT
        <OPTION> Engineering
        <OPTION> Nursing
        <OPTION> Health Professions
        <OPTION> Medicine
        <OPTION> HES
        <OPTION> Journalism
        <OPTION> Law
        <OPTION> Public Affairs
        <OPTION> Social Work
        <OPTION> Veterinary Medicine
        <OPTION> Graduate School
      </SELECT>
    </P>
    <P><B>Your Program of Study</B>:
      <INPUT type="text" name="study" size=65>
    </P>
    <B>Your Graduate Level: </B> </DIV>
  <BLOCKQUOTE>
    <DIV align="left">
      <P>
        <INPUT type="radio" name="Level" value="Masters">
        Masters <BR>
        <INPUT type="radio" name="Level"value="Specialist">
        Specialist<BR>
        <INPUT type="radio" name="Level" value="Doctoral" >
        Doctoral <BR>
        <INPUT type="radio" name="Level" value="Professional Degree">
        Professional (i.e. Law, Medicine, Vet)<BR>
        <INPUT type="radio" name="Level" value="PostDoc">
        PostDoc <BR>
        <INPUT type="radio" name="Level" value="Other">
        Other:
        <INPUT type="text" name="OtherLevel">
    </DIV>
    <BR>
    <B>For planning purposes ONLY</B>, please select four (4)
    presentations you are most likely to attend:
    <BLOCKQUOTE>
      <DIV align="left">
        <INPUT type="checkbox" name="topics1" value="1.  Concept Mapping">
        Concept Mapping for Research and Exam Preparation <BR>
        <INPUT type="checkbox" name="topics2" value="2.  Free Software">
        Free Software Tools <BR>
        <INPUT type="checkbox" name="topics3" value="3.  Electronic Thesis/Dissertations">
        New MU Electronic Thesis & Dissertation Process<BR>
        <INPUT type="checkbox" name="topics4" value="4.  Open Forum">
        Open Forum: Ask your technology specific questions<BR>
        <INPUT type="checkbox" name="topics5" value="5.  Research to Writing">
        Research to Writing Process with Technology<BR>
        <INPUT type="checkbox" name="topics6" value="6.  Time Management">
        Time Management<BR>
        <INPUT type="checkbox" name="topics7" value="7. Microsoft OFFICE">
        Using Microsoft OFFICE for Research & Writing<BR>
        <INPUT type="checkbox" name="topics8" value="8. Survey Data">
        Using the Internet to Collect Survey Data<BR>
        <INPUT type="checkbox" name="topics9" value="9. Video Technology">
        Using Video Technology<BR>
        <INPUT type="checkbox" name="topics0" value="10. Library">
        Virtual Research Sources </DIV>
    </BLOCKQUOTE>
  </BLOCKQUOTE>
  </TD>
  </TR>
  <TR>
  <TD bgcolor="#FFFFFF"><B>Do you plan to enter the Poster Competition?
  </B>
  <INPUT type="radio" name="Poster_contest" value="Y">
  Yes
  <INPUT type="radio" name="Poster_contest" value="N">
  No
  <INPUT type="radio" name="Poster_contest" value="U">
  Undecided </TD>
  </TR>
  <TR>
  <TD valign=top align=center bgcolor="#FFFFFF">
  <P><FONT face=arial size=-1> <B>If you have any comments or
    suggestions, please add them below: </B></FONT><BR>
    <TEXTAREA cols=70 rows=10 name="Comments"></TEXTAREA>
  </P>
  <P>&nbsp; </P>
  <P>
    <INPUT type="submit" value="Send" name="submit">
    <?php
// DEBUG Statment
/*
print ("Testing Global FUNCTION");
prtBR (" ");
prtBR ("Testing Global Function: prtBR");
*/
?>
    <INPUT type="reset" value="Clear the form" name="reset">
  <HR>
  <P><A href="mailto:ryh352@mizzou.edu">Contact Seminar Coordinator</A>
    <IMG src="images/email.gif" width="96" height="91"><A href="mailto:gpc@missouri.edu">Contact
    GPC</A> </P>
  <P align="left"><FONT face="Arial, Helvetica, sans-serif" size="-1">Page
    last modified<I><FONT color="#999999">:
    <!-- #BeginDate format:fIS1a -->Saturday 2004-10-16 10:10 PM<!-- #EndDate -->
    </FONT>&nbsp; &nbsp;&nbsp; &nbsp;</I><BR>
    Visit the official <B>GPC</B> Website <A href="http://www.students.missouri.edu/~gpc/" target="_blank">http://www.students.missouri.edu/~gpc/</A>
    </FONT></P>
  </TD>
  </TR>
  </TABLE>

  



<!--  ===================================================
FORMS & DATA PROCESSING USING PHP
=======================================================


$Fname
$Lname
$your_email_address
$your_email_address2
$Unit
$study
$Level
$topics1
$topics2
$topics3
$topics4
$topics5
$topics6
$topics7
$topics8
$topics9
$topics0
$Poster_contest
$Send
$submit
$reset
===================================================
-->
<?php
//  MOVE FORM DATA INTO AN ARRAY
SETTYPE ($formdata, 'array');
$topic="topics";
$formdata[0]=" ";
$formdata[1]=$Fname;
$formdata[2]=$Lname;
$formdata[3]=$your_email_address;
$formdata[4]=$your_email_address2;
$formdata[5]=$Unit;
$formdata[6]=$study;
$formdata[7]=$Level;
$formdata[8]=$Poster_contest;
$formdata[9]=$Comments;

// USE A "FOR" LOOP TO MOVE DESIRED TOPIC LISTS TO DP ARRAY


?>
<!--
MY YAHOO Webhosting Options
-->

<INPUT type="hidden" name="subject" value="Q7310 Test Form ">

<!-- OPTION 2
<INPUT type="hidden" name="required_fields" value="Fname,Lname, your_email_address">
-->

<INPUT type="hidden" name="next_url" value="http://rrchubbard.org/php/q7310/response.html">





</FORM>
<FONT face="Arial, Helvetica, sans-serif">
<BR>



</FONT>
</BODY>
</HTML>

(c) 2004 Robin Y. Mabry Hubbard 4ascii@marz.com