Results 1 to 5 of 5

Thread: Trouble with form input names

  1. #1
    Join Date
    Oct 2004
    Posts
    3

    Default Trouble with form input names

    Is there a list of names that shouldn't be used for html form inputs? I've been having problems with a form that will not work when I include a text input called 'speed'. When I remove the input the form works fine, but when I include it, the submit button does not work.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Is there a list of names that shouldn't be used for html form inputs
    I doubt it. Does the page not submit, or it submits with unexpected results? If it doesn't submit, I'd guess the form HTML is broken. Maybe post the form source.

  3. #3
    Join Date
    Oct 2004
    Posts
    3

    Default

    The form appears to submit, but simply returns to the same page instead of to the page specified as the success view.

    The form source is below. Since my first post I've discovered that its not just the 'speed' field. It seems to be everything after 'loosingSp'. Maybe it's something simple that I just cant see, but this has been driving me nuts for a day now. Any help very gratefully received.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    </head>
    <body>
    <h2>1.2 Add order details</h2>
    <form method="post">
    <table>
    <tr><td>Order ref<td><input name="orderRef"></tr>
    <tr><td>Type<td><input name="orderType"></tr>
    <tr><td>IP address<td><input name="ipAddress"></tr>
    <tr><td>username<td><input name="username"></tr>
    <tr><td>password<td><input name="password"></tr>
    <tr><td>mac id<td><input name="macId"></tr>
    <tr><td>losing sp<td><input name="loosingSp"></tr>
    <tr><td>speed<td><input name="speed"></tr>
    <tr><td>contention<td><input name="contention"></tr>
    <tr><td>best available<td><input name="bestAvailable"></tr>
    <tr><td>enhanced sla<td><input name="enhancedSla"></tr>
    <tr><td>activation date<td><input name="activationDate"></tr>
    <tr><td>customer<td><input name="customer"></tr>
    <tr><td>required ips<td><input name="requiredIps"></tr>
    <tr><td>cpe required<td><input name="cpeRequired"></tr> -->
    <<tr><td>notes<td><textarea cols='20' rows='5' name='notes'></textarea>
    </table>
    <input name="submit" value="add order details" type="submit">
    </form>
    </body>
    </html>

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Sorry I wasn't clear, but I was only suggesting to post the HTML source if the page wasn't submitting.

    The page will be returned if there are binding or validation errors. You can check this in your JSP with something like:
    Code:
    <spring&#58;bind path="command">
      errorCount=<c&#58;out value="$&#123;status.errors.errorCount&#125;"/>
    </spring&#58;bind>

  5. #5
    Join Date
    Oct 2004
    Posts
    3

    Default

    Please forgive my stupidness. I'd made such an elementary omission that I'm too embarrassed to share it here :oops:

    Thanks very much for your replies.

Similar Threads

  1. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  2. UTF-8 form input garbled
    By assaf in forum Web
    Replies: 8
    Last Post: Oct 10th, 2006, 05:38 AM
  3. Replies: 9
    Last Post: May 4th, 2006, 09:53 AM
  4. Replies: 2
    Last Post: Sep 13th, 2005, 09:22 PM
  5. Replies: 2
    Last Post: Apr 29th, 2005, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •