very easy, please help: Field

  • 19 years ago

    i would like to send the value of a region to my MS Sql database when a user registers with a form and chooses a country.
    the problem is that i dont know how to set the onsubmit action in the form with the function. i am not sure the function is correct either. I just started working with asp, and my manager wants me to finish this project by today. it is very frustrating, so i would greatly appreciate any help.


    this is my function:
    e.g.


    <%
    Function Region
    if glass.Value("country") = "United Kingdom" then
    glass.Value("region") = "North"
    end if
    End Function
    %>


    Within the form i have the following value:


    <input type="hidden" value='<%glass.Value("region")%>' name='region'>


    thanks for any ideas,
    natalia

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perl - The only language that looks the same before and after RSA encryption.” - Keith Bostic