Results 1 to 3 of 3

Thread: variable in request form - undefined

  1. #1
    Join Date
    Jan 2006
    Posts
    50
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Exclamation variable in request form - undefined

    I have had a system up and running for a few years, I inherited it from someone. They have a form submitting on a ASP/Javascript page.



    The form looks like this:

    --------------------------------------------------------------------------

    Code:
    <form method="post" action="registration.asp" name="form" id="form">
    
    <table width="410" border="0" align="center" cellpadding="4" cellspacing="0">
    
        <tr class="texto_nota"> 
    
          <td> 
    
            <div align="right">Last name:</div>
    
          </td>
    
          <td> 
    
            <input type="text" name="lastname" size="60">
    
          </td>
    
        </tr>
    
        <tr class="texto_nota"> 
    
          <td> 
    
            <div align="right">First name:</div>
    
          </td>
    
          <td> 
    
            <input type="text" name="firstname" size="60">
    
          </td>
    
        </tr></table>
    
    <p> 
    
        <input type="submit" id="Submit" name="Submit" value="Submit">
    
      </p>
    
    </form>


    ----------------------------------------------

    And then the ASP:


    Code:
    if (String(Request("Submit")) != "undefined"){
    
    ..bla.. 
    
    }

    Now, it always used to do the “bla”, but now suddenly, no matter what, its taken the value of “submit” as undefined, and thus the “bla” is not being done. I have tried adding in specifically “.item” and .”form” in the request line, but nothing seems to work.


    Any ideas?


    Thanks!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Try to print the sent variable to understand exactly what is being set.

    Otherwise, there is a chance the server configuration changed enough, somehow, that the form no longer functions as it did before. Without thorough testing it is difficult to say more.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jan 2006
    Posts
    50
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    thanks.
    i have printed, and i get: 'undefined'

    any idea what server config could refer to something like this?? (I have control over IIS)

Bookmarks

Posting Permissions

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