Hi,
ich habe folgendes Problem.
Es geht um folgendes Formular:
HTML
- <!DOCTYPE html>
- <html lang="de">
- <head>
- <!--
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" media="all" href="styles/reset.css">
- <link rel="stylesheet" type="text/css" media="all" href="styles/main.css">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
- <script type="text/javascript" src="scripts/response.js"></script>
- <title>All about hardware</title>
- </head>
- <body>
- <div id="mainWrapper">
- <!-- #include file = "Includes/header.inc" -->
- <aside>
- <!-- #include file = "Includes/nav1.inc" -->
- </aside>
- <section>
- <h4>Newsletter signup</h4>
- <article class="hover">
- <form id="frmApplication" name="frmApplication" action="*******************/response.asp" method="post">
- <fieldset>
- <h5>Newsletter Settings</h5>
- <p>Signup for our new paid newsletter and be the first to get new updates and help us paying the costs for the website for just 5$/month.</p>
- <table>
- <tr>
- <td><label for="rdoType[0]">What kind of information would you like to recieve:</label>
- </tr>
- <tr>
- <td><input id="rdoType[0]" name="rdoType" type="radio" value ="I" checked>Just updates for the hardware guides
- </tr>
- <tr>
- <td><input id="rdoType[1]" name="rdoType" type="radio" value="F">All updates including news
- </tr>
- </table>
- </fieldset>
- </article>
- <article>
- <fieldset>
- <h5>Contact Information</h5>
- <table>
- <tr>
- <td><label for="txtFName">First Name:</label>
- <td> <input id="txtFName" name="txtFName" type="text" placeholder="Max" size="35" required="required" /><br>
- </tr>
- <tr>
- <td> <label for="txtLName">Last Name:</label>
- <td> <input id="txtLName" name="txtLName" type="text" placeholder="Mustermann" size="35" required="required" /><br>
- </tr>
- <tr>
- <td> <label for="txtAddr">Address:</label>
- <td> <input id="txtAddr" name="txtAddr" type="text" placeholder="Musterstrasse 1" size="40" required="required" /><br>
- </tr>
- <tr>
- <td><label for="selCountr"> Select your country:</label>
- <td><select id="selCountr" name="selCountr">
- <option value="GER">Germany</option>
- <option value="USA">United States of America</option>
- <option value="UK">United Kingdom</option>
- <option value="FR">France</option>
- </select><br>
- </tr>
- <tr>
- <td> <label for="txtZip">Zip Code:</label>
- <td> <input id="txtZip" name="txtZip" type="text" placeholder="99999" size="5" required="required" pattern="[0-9]{5}?" title="A zip code in the format of 99999" />
- </tr>
- </fieldset>
- <fieldset>
- <tr>
- <td> <label for="rdoSex[0]">Sex:</label>
- <td> <input id="rdoSex[0]" name="rdoSex" type="radio" value ="M" checked />M
- <input id="rdoSex[1]" name="rdoSex" type="radio" value="F" />F<br>
- </tr>
- <tr>
- <td> <label for="txtEmail">Email:</label>
- <td> <input id="txtEmail" name="txtEmail" type="email" placeholder="[email protected]" size="45" required="required" /><br>
- </tr>
- <tr>
- <td> <label for="txtPhone">Telephone:</label>
- <td> <input id="txtPhone" name="txtPhone" type="tel" placeholder="555 555-5555" size="15" required="required" />
- </tr>
- </table>
- </fieldset>
- <fieldset>
- </article>
- <article>
- <h5>Select Interests</h5>
- <table>
- <tr>
- <td> <input type="checkbox" id="chkCPU" name="chkCPU" /> </td>
- <td>CPU</td>
- <td> <input type="checkbox" id="chkGPU" name="chkGPU" /> </td>
- <td>GPU</td>
- <td> <input type="checkbox" id="chkSSD" name="chkSSD" /> </td>
- <td>SSDs</td>
- </tr >
- <tr>
- <td> <input type="checkbox" id="chkBuild" name="chkBuild" /> </td>
- <td>PC Builds</td>
- <td> <input type="checkbox" id="chkTutorials" name="chkTutorials" /> </td>
- <td>Tutorial</td>
- <td><input type="checkbox" id="chkConsole" name="chkConsole" /> </td>
- <td>Gaming Consoles</td>
- </tr>
- <tr>
- <td> <input type="checkbox" id="chkPhone" name="chkPhone" /> </td>
- <td>Smartphones</td>
- <td> <input type="checkbox" id="chkSoftware" name="chkSoftware" /> </td>
- <td>Software/OS</td>
- <td> <input type="checkbox" id="chkVideos" name="chkVideos" /> </td>
- <td>Videos</td>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- </article>
- <article>
- <h5>Credit Card Information</h5>
- <table>
- <tr>
- <td><label for="selCard">Select a Card:</label>
- <td><select id="selCard" name="selCard">
- <option value="AMEX">AMEX</option>
- <option value="MC">Master Card</option>
- <option value="Visa">Visa</option>
- </select><br>
- </tr>
- <tr>
- <td><label for="txtCNum">Enter Card Number:</label>
- <td><input id="txtCNum" name="txtCNum" type="text" placeholder="3400 0000 0000 009" required="required" />
- </tr>
- </table
- </fieldset>
- <div>
- <input type="button" id="btnSubmit" value="Complete signup" onclick="CheckData()" />
- <input type="reset" value="Cancel" />
- </div>
- </form>
- </article>
- </section>
- <div class="clearfix"></div>
- </div>
- <!-- #include file = "Includes/footer.inc" -->
- </body>
- </html>
Da soll man eingaben machen können.
Das ganze möchte ich dann darauffolgend auf folgender repsonse.asp in einer Übersicht anzeigen (also alle eingebenen Daten als übersicht).
HTML
- <!DOCTYPE html>
- <html lang="de">
- <head>
- <!--
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" media="all" href="styles/reset.css">
- <link rel="stylesheet" type="text/css" media="all" href="styles/main.css">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
- <script type="text/javascript" src="scripts/response.js"></script>
- <title>All about hardware</title>
- </head>
- <body>
- <div id="mainWrapper">
- <!-- #include file = "Includes/header.inc" -->
- <aside>
- <!-- #include file = "Includes/nav1.inc" -->
- </aside>
- <section>
- <h4>Newsletter signup</h4>
- <article class="hover">
- <h5>Success!</h5>
- <p>Thank you for signing up for our paid newsletter. Here is an overview of the data you entered before..</p>
- What kind of information would you like to recieve:
- <%=request.form(1)%>
- </article>
- <article>
- <fieldset>
- <h5>Contact Information</h5>
- <table>
- <tr>
- <td><label for="txtFName">First Name:</label>
- <td> <%=request.form("txtFName")%><br>
- </tr>
- <tr>
- <td> <label for="txtLName">Last Name:</label>
- <td> <%=request.form("txtLName")%><br><br>
- </tr>
- <tr>
- <td> <label for="txtAddr">Address:</label>
- <td> <%=request.form("txtAddr")%><br>
- </tr>
- <tr>
- <td><label for="selCountr"> Select your country:</label>
- <td> <%=request.form("selCountr")%>
- </tr>
- <tr>
- <td> <label for="txtZip">Zip Code:</label>
- <td> <%=request.form("txtZip")%>
- </tr>
- </fieldset>
- <fieldset>
- <tr>
- <td> <label for="rdoSex[0]">Sex:</label>
- <td> <%=request.form("rdoSex")%><br>
- </tr>
- <tr>
- <td> <label for="txtEmail">Email:</label>
- <td> <%=request.form("txtEmail")%><br>
- </tr>
- <tr>
- <td> <label for="txtPhone">Telephone:</label>
- <td> <%=request.form("txtPhone")%>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- </article>
- <article>
- <h5>Select Interests</h5>
- <table>
- <tr>
- <td> <%=request.form("chkCPU")%> </td>
- <td> <%=request.form("chkGPU")%> </td>
- <td> <%=request.form("chkSSD")%> </td>
- </tr >
- <tr>
- <td> <%=request.form("chkBuild")%> </td>
- <td> <%=request.form("chkTutorials")%> </td>
- <td> <%=request.form("chkConsole")%> </td>
- </tr>
- <tr>
- <td> <%=request.form("chkPhone")%> </td>
- <td> <%=request.form("chkSoftware")%> </td>
- <td> <%=request.form("chkVideos")%> </td>
- </tr>
- </table>
- </fieldset>
- <fieldset>
- </article>
- <article>
- <h5>Credit Card Information</h5>
- <table>
- <tr>
- <td><label for="selCard">Select a Card:</label>
- <td><select id="selCard" name="selCard">
- <option value="AMEX">AMEX</option>
- <option value="MC">Master Card</option>
- <option value="Visa">Visa</option>
- </select><br>
- </tr>
- <tr>
- <td><label for="txtCNum">Enter Card Number:</label>
- <td><input id="txtCNum" name="txtCNum" type="text" placeholder="3400 0000 0000 009" required="required" />
- </tr>
- </table
- </fieldset>
- <div>
- <input type="button" id="btnSubmit" value="Submit Application" onmousedown="Javascript:CheckData()" />
- <input type="reset" value="Cancel" />
- </div>
- </form>
- </article>
- </section>
- <div class="clearfix"></div>
- </div>
- <!-- #include file = "Includes/footer.inc" -->
- </body>
- </html>
Es geht auch alles gut, bis auf die Checkboxen, da krieg ich keine schöne Übersicht von dem, was ich angekreuzt hab.
Wie geht das?
Danke im Vorraus
Brian