Agree the form field can be named anything,
- but if you use the DBRW it will use those form field names and cause errors
(and it becomes too easy to forget it is a reserved name in the future and try to map it to a DB later)
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| You shouldn't use it as an Access Field name but you can name the Form field
| anything you want. It won't affect the database at all
|
|
| | > PS
| > Name is a reserved word in Access
| > - best to not to use it for any form field names if you are going to use
| > any DB in the future
| > Use FirstName or FullName instead of just Name
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | > | You may also want to add in an Else there in case the contact isn't
| > | "Richard" so you don't get a blank spot. Ex:
| > |
| > | Dim ContactName, sContact
| > | ContactName = Request.Form("name")
| > | if ContactName= "Richard" Then
| > | sContact= "
[email protected]"
| > | Else sContact = ""
| > | End if
| > |
| > | Then on your page, where you're writing the value you could have
| > something
| > | like this:
| > |
| > | <%
| > | If sContact <> "" Then
| > | %>
| > | <a href="mailto:<%=sContact%>"><%=sContact%></a>
| > | <%Else%>
| > | No Contact Information is Available
| > | <% End If %>
| > |
| > |
| > | | > | > Hi,
| > | > It should be like this
| > | > Dim ContactName, sContact
| > | > ContactName = Request.Form("name")
| > | > if ContactName= "Richard" Then
| > | > sContact= "
[email protected]"
| > | > End if
| > | >
| > | > Jon
| > | >
| > | > | > | >> Hi
| > | >> I cant get this to work any suggestions
| > | >> Thanks
| > | >>
| > | >> <%
| > | >> Dim ContactName, sContact
| > | >> ContactName = Request.Form("name")
| > | >> if ContactName= "Richard"
| > | >> Then sContact= "
[email protected]"
| > | >> End if
| > | >>
| > | >> %>
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|