Question

Validate form?

Asked by: Kouras

Hi, guys
Is the any way to validate the form fields in code below, that if the fields are haven't been filled, the error would appear against "your name", "your e-mail" showing  something like : you didn't enter a valid e-mail address......... and so on.

<HTML>
<body>
<%
if request.ServerVariables("REQUEST_METHOD") = "GET" then
%>
<center>
<form action="file.asp" method=post>
<table><tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your Name:</font><br> <input type="text" size="53" name="strName">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient Email:</font><br> <input type="text" size="53" name="strTo">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient2 Email:</font><br> <input type="text" size="53" name="strCc">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your message:</font><br>
<textarea cols="33" rows="8" name="message">
</textarea>
</td></tr>
</table>
<p><input type=submit name=send value=Send >&nbsp;&nbsp;
<input type="Reset"  value="Reset"></p>
</form></center>
<%

else
 strName=request("strName")
 strTo=request("strTo")
 strCc=request("strCc")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Cc = request("strCc")
objMail.Subject = "A wallpaper for you"

' this is my messages HTML
strMsg = strMsg & "<html>"
strMsg = strMsg & "<head>"                      
strMsg = strMsg & "<title>"                          
strMsg = strMsg & "</title>"                      
strMsg = strMsg & "</head>"                      
strMsg = strMsg & "<body>"              
strMsg = strMsg & "Sometext"                                  
strMsg = strMsg &  request("message")
strMsg = strMsg & "</body>"
strMsg = strMsg & "</html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
objMail.Send

' destroy the email object
Set objMail = Nothing

%>
<br><center>
<table align="center" width="100%"><tr>
      <td width="100%" height="39" align="center"> <font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
        Thank you</i></b></font>
          <font color="#9966CC" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
           <%=strName%>, </i></b></font>
       </td>
    </tr>
</table>
</center>
<% end if %>
 </body>
</html>

It seems to be tricky, coz whole page in "if then" statement. Would be vary appreciated to anyone who's got any ideas:)

Thanx

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-04-08 at 21:37:31ID20579192
Tags

validate

Topic

Active Server Pages (ASP)

Participating Experts
3
Points
20
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. helvetica font PLEASE
    I've tried to find Helvetica Font Face everywhere..........any help??? THANKS! mickeymouser
  2. Checkbox validation
    I have a group of checkboxes all with the same name and want to have validation that insures at least one of the boxes is checked before the form can be submitted. Below is the code for my checkboxes: <td width="278"><font face="Verdana, Arial, Helv...
  3. Helvetica
    I need to install Helvetica onto my PC. Where do I find it to download. Not talking about Helv-Condensed.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: bytecraftPosted on 2003-04-08 at 22:23:44ID: 8297268

<HTML>
<body>
<%
dim errors
  if request("submit") <> "" then
     ' Validation
     if request("strName") = "" then
     errors = errors & "- Please enter your name<BR>"
     end if
     if request("strTo") = "" or Instr(request("strTo"),"@") = 0 then
     errors = errors & "- Please enter a valid recipient email<BR>"
     end if
     if request("strCC") = "" or Instr(request("strTo"),"@") = 0 then
     errors = errors & "- Please enter a valid recipient2 email<BR>"
     end if
  end if

if errors <> "" then
   response.write "<font color=red>" & Errors & "</font>"
end if

if request.ServerVariables("REQUEST_METHOD") = "GET" then
%>
<center>
<form action="file.asp" method=post>
<table><tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your Name:</font><br> <input type="text" size="53" name="strName">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient Email:</font><br> <input type="text" size="53" name="strTo">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient2 Email:</font><br> <input type="text" size="53" name="strCc">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your message:</font><br>
<textarea cols="33" rows="8" name="message">
</textarea>
</td></tr>
</table>
<p><input type=submit name=send value=Send >&nbsp;&nbsp;
<input type="Reset"  value="Reset"></p>
</form></center>
<%

else
  if errors = "" then
strName=request("strName")
strTo=request("strTo")
strCc=request("strCc")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Cc = request("strCc")
objMail.Subject = "A wallpaper for you"

' this is my messages HTML
strMsg = strMsg & "<html>"
strMsg = strMsg & "<head>"                      
strMsg = strMsg & "<title>"                          
strMsg = strMsg & "</title>"                      
strMsg = strMsg & "</head>"                      
strMsg = strMsg & "<body>"              
strMsg = strMsg & "Sometext"                                  
strMsg = strMsg &  request("message")
strMsg = strMsg & "</body>"
strMsg = strMsg & "</html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
objMail.Send

' destroy the email object
Set objMail = Nothing
end if
%>
<br><center>
<table align="center" width="100%"><tr>
     <td width="100%" height="39" align="center"> <font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
       Thank you</i></b></font>
         <font color="#9966CC" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
          <%=strName%>, </i></b></font>
      </td>
   </tr>
</table>
</center>
<% end if %>
</body>
</html>

 

by: gladxmlPosted on 2003-04-08 at 23:07:49ID: 8297458

Kouras,

Try to check out the code below...

========

<HTML>
<body>
<%

 if request("send") <> "" then
dim error
error = "false"
    ' Validation
    if request("strName") = "" then
    errorname = "Please enter your name."
     error ="true"
    end if
    if request("strTo") = ""   then
    erroremail1 =  "You didn't enter a valid e-mail address."
     error = "true"
    end if
    if request("strCC") = ""  then
    erroremail2 = "You didn't enter a valid e-mail address."
     error = "true"
    end if
    if request("message") = ""  then
    errormessage = "You didn't enter any messages."
     error = "true"
    end if

end if

if error  = "false" then

strName=request("strName")
strTo=request("strTo")
strCc=request("strCc")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Cc = request("strCc")
objMail.Subject = "A wallpaper for you"

' this is my messages HTML
strMsg = strMsg & "<html>"
strMsg = strMsg & "<head>"                      
strMsg = strMsg & "<title>"                          
strMsg = strMsg & "</title>"                      
strMsg = strMsg & "</head>"                      
strMsg = strMsg & "<body>"              
strMsg = strMsg & "Sometext"                                  
strMsg = strMsg &  request("message")
strMsg = strMsg & "</body>"
strMsg = strMsg & "</html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
objMail.Send

' destroy the email object
Set objMail = Nothing

%>
<br><center>
<table align="center" width="100%"><tr>
    <td width="100%" height="39" align="center"> <font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
      Thank you</i></b></font>
        <font color="#9966CC" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
         <%=strName%>, </i></b></font>
     </td>
  </tr>
</table>
</center>
<%end if%>
<center>
<form action="file.asp" method=post>
<table><tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your Name:</font><%=errorname%><br> <input type="text" size="53" name="strName" value="<%=request.form("strName")%>">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient Email:</font><%=erroremail1%><br> <input type="text" size="53" name="strTo" value="<%=request.form("strTo")%>">
</td></tr>
<tr>
        <td> <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2" >
          Recipient2 Email:</font><%=erroremail2%><br>
           <input type="text" size="53" name="strCc" value="<%=request.form("strCc")%>">
</td></tr>
<tr>
        <td> <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
          Your message:</font><%=errormessage%><br>
<textarea cols="33" rows="8" name="message"><%=request.form("message")%>
</textarea>
</td></tr>
</table>
<p><input type=submit name=send value=Send >&nbsp;&nbsp;
<input type="Reset"  value="Reset"></p>
</form></center>
</body>
</html>

====

HTH...

BTW the point is to low fir such question..

HAppy programming

 

by: suryaperiPosted on 2003-04-09 at 00:15:18ID: 8297682

the validation is possible on client side by javascript:

the changes made in ur code are:
1. javascript code has been added as function f1()

2. f1() is called on onclick event of submit button.

3. A <div></div> has been added after every field for validation
4. form has been assigned a name frm1

as soon as the form is submitted, the function f1() executes and validates the form.
now u copy the following code and check whether what u intended is happening or not:


<HTML>
<script>
function f1()
{
var blnIsValid=true
if(document.frm1.strName.value=="")
{
document.getElementById("nameerr").innerHTML ="U forgot to enter name"
document.frm1.strName.focus()
blnIsValid= false
}
else
{
document.getElementById("nameerr").innerHTML =""
}
if(document.frm1.strTo.value=="")
{
document.getElementById("toerr").innerHTML ="U forgot to enter Recipient Email id"
document.frm1.strTo.focus()
blnIsValid= false
}
else
{
document.getElementById("toerr").innerHTML =""
}

if(document.frm1.strCc.value=="")
{
document.getElementById("ccerr").innerHTML ="U forgot to enter Recipient2 Email id"
document.frm1.strCc.focus()
blnIsValid= false
}
else
{
document.getElementById("ccerr").innerHTML =""
}

if(document.frm1.message.value=="")
{
document.getElementById("msgerr").innerHTML ="U forgot to enter message"
document.frm1.message.focus()
blnIsValid= false
}
else
{
document.getElementById("msgerr").innerHTML =""
}
return blnIsValid
}
</script>
<body>
<%if request.ServerVariables("REQUEST_METHOD") = "GET" then%>
<center>
<form name="frm1" action="temp1.asp" method=post>
<table>
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="2">
Your Name:<div id="nameerr"></div>
</font>
<input type="text" size="53" name="strName">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="2">
Recipient Email:<div id="toerr"></div>
</font>
<input type="text" size="53" name="strTo">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="2">
Recipient2 Email:<div id="ccerr"></div>
</font>
<input type="text" size="53" name="strCc">
</td>
</tr>
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="2">
Your message:<div id="msgerr"></div>
</font>
<textarea cols="33" rows="8" name="message"></textarea>
</td>
</tr>
</table>
<p>
<input type=submit name=send value=Send onclick="return f1()" >&nbsp;&nbsp;
<input type="Reset"  value="Reset">
</p>
</form>
</center>
<%else
strName=request("strName")
strTo=request("strTo")
strCc=request("strCc")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Cc = request("strCc")
objMail.Subject = "A wallpaper for you"' this is my messages
strMsg = strMsg & "<html>"
strMsg = strMsg & "<head>"
strMsg = strMsg & "<title>"
strMsg = strMsg & "</title>"
strMsg = strMsg & "</head>"
strMsg = strMsg & "<body>"
strMsg = strMsg & "Sometext"
strMsg = strMsg & request("message")
strMsg = strMsg & "</body>"
strMsg = strMsg & "</html>"' set the format of the email to html,etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
objMail.Send' destroy the email object
Set objMail = Nothing%>
<center>
<table align="center" width="100%"><tr>
     <td width="100%" height="39" align="center"> <font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
       Thank you</i></b></font>
         <font color="#9966CC" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
          <%=strName%>, </i></b></font>
      </td>
   </tr>
</table>
</center>
<% end if %>
</body>
</html>

 

by: suryaperiPosted on 2003-04-09 at 00:29:15ID: 8297722

i forgot to mention another thing. After showing the error messages against the fields, if u reset the fields the error messages have to be cleared. for that write a function clear1 as follows and call it in onclick event of reset button.




function clear1()
{
document.getElementById("nameerr").innerHTML =""
document.getElementById("toerr").innerHTML =""
document.getElementById("ccerr").innerHTML =""
document.getElementById("msgerr").innerHTML =""
}


u can call this function on onclick event of reset button as :

<input type="Reset" value="Reset"  onClick="clear1()">

and also on onload event of body tag as:

<body onload="clear1()">


plz do comment on my reply as i worked a lot to answer ur question.

 

by: KourasPosted on 2003-04-09 at 07:06:16ID: 8299764

Sorry,but neither of your scripts are working, guys.
With gladxml script: when I click on submit button the form appearing again with thank you words on the top......
With suryaperi script: clicking submit with empty fields and it returns thank you words.....no validation?

Anyway, sorry 4 bothering you guys.

Thanx to all of you for attention.

 

by: suryaperiPosted on 2003-04-09 at 07:21:29ID: 8299880

dear kouras,

do u want to have validation checking in asp after submit or in javascript.

i have tested my script. it doesnot allow to submit till u have entered all the fields then how thank you words will come on submit.

have u copied entire script of mine or not?

try once again as i have tested it

 

by: KourasPosted on 2003-04-09 at 09:04:01ID: 8300679

Sorry, suryaperi
....it works with validation, but when i receive e-mail there's only subject and message, the strMsg = strMsg & "Sometext"  is not there , do you know why?

 

by: KourasPosted on 2003-04-09 at 09:11:05ID: 8300733

suryaperi , no worries, I sorted it out... I will accept your answer. Can you answer some more questions, please:
You javascript code only for validation, I mean if I have javascript disabled, I will still be able to use the form, but just without validation, am I right?

Thanx a lot

 

by: suryaperiPosted on 2003-04-10 at 00:40:48ID: 8305343

actaully if javascript is disabled then form will run without validation but with some errors:

1) in body onload u called clear1() function.
2) in submit button onclick u called f1() function.
3) in reset button onclick u called clear1() function.
 
as javascript is disabled these function are not found and error occurs. so u remove these events from <body> and both button tags. then the form will work better but without validation

 

by: gladxmlPosted on 2003-04-10 at 03:33:35ID: 8305933

Kouras,

Basically this is the question:

<<<
the error would appear against "your name", "your e-mail" showing  something like
<<<

This requirement can only be achieve using server side... Unlike client side the message appears as a messagebox...


BTW below is the working code for validation using server side...  


=====
<HTML>
<body>
<%

 if request("send") <> "" then
dim error
error = "false"
    ' Validation
    if request("strName") = "" then
    errorname = "Please enter your name."
      error ="true"
    end if
    if request("strTo") = ""   then
    erroremail1 =  "You didn't enter a valid e-mail address."
      error = "true"
    end if
    if request("strCC") = ""  then
    erroremail2 = "You didn't enter a valid e-mail address."
      error = "true"
    end if
    if request("message") = ""  then
    errormessage = "You didn't enter any messages."
      error = "true"
    end if

end if

if error  = "false" then
strName=request("strName")
strTo=request("strTo")
strCc=request("strCc")


Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Importance = 1
objMail.From = request("strName") & "<" & request("strEmail") & ">"
objMail.To = request("strTo")
objMail.Cc = request("strCc")
objMail.Subject = "A wallpaper for you"

' this is my messages HTML
strMsg = strMsg & "<html>"
strMsg = strMsg & "<head>"                      
strMsg = strMsg & "<title>"                          
strMsg = strMsg & "</title>"                      
strMsg = strMsg & "</head>"                      
strMsg = strMsg & "<body>"              
strMsg = strMsg & "Sometext"                                  
strMsg = strMsg &  request("message")
strMsg = strMsg & "</body>"
strMsg = strMsg & "</html>"
' set the format of the email to html, etc
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = strMsg
objMail.Send

' destroy the email object
Set objMail = Nothing

%>
<br><center>
<table align="center" width="100%"><tr>
    <td width="100%" height="39" align="center"> <font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
      Thank you</i></b></font>
        <font color="#9966CC" face="Verdana, Arial, Helvetica, sans-serif" size="5"><b><i>
         <%=strName%>, </i></b></font>
     </td>
  </tr>
</table>
</center>
<%
else
%>
<center>
<form action="" method=post>
<table><tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Your Name:</font><%=errorname%><br> <input type="text" size="53" name="strName" value="<%=request.form("strName")%>">
</td></tr>
<tr><td>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
Recipient Email:</font><%=erroremail1%><br> <input type="text" size="53" name="strTo" value="<%=request.form("strTo")%>">
</td></tr>
<tr>
        <td> <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2" >
          Recipient2 Email:</font><%=erroremail2%><br>
           <input type="text" size="53" name="strCc" value="<%=request.form("strCc")%>">
</td></tr>
<tr>
        <td> <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF33" size="2">
          Your message:</font><%=errormessage%><br>
<textarea cols="33" rows="8" name="message"><%=request.form("message")%>
</textarea>
</td></tr>
</table>
<p><input type=submit name=send value=Send >&nbsp;&nbsp;
<input type="Reset"  value="Reset"></p>
</form></center>
</body>
</html>
<%end  if%>
===========


<<<
You javascript code only for validation, I mean if I have javascript disabled, I will still be able to use the form, but just without validation, am I right?
<<<

Yes but without but without the validation... And when you run the code and actually submit the pages without any email address you will have an error with sending of email script...

Many uses both approaches in a page so that if the client scripting is disabled you can still check for errors on server side...



Another things please do check your open question...

People here are helping with their free time and effort and the only way to reward them is by accepting a comment an answer that help you in solving your problem... This way people will help you as fast as they can since you respect them...


HTH...

HAppy programming...

Reagrds,
gladxml

 

by: KourasPosted on 2003-04-10 at 04:16:05ID: 8306025

Thanx gladxml for explanation, if I could I would award you too. As for other open questions I posted...I solved them, so I don't even look at them, if I could delete them, I would've done that. Hope you are not that angry on me:)))  


Thanx guys all of you!

 

by: gladxmlPosted on 2003-04-10 at 18:51:08ID: 8310876

Kouras,

Of course I am not angry with you...

If you wish to delete the question, you can post a zero-point question with Community Support (http://www.experts-exchange.com/Community_Support/qAskQuestion.jsp).  Include a link to all the question that needs to be deleted.

Also it is much better to comment your solution to the question.. to notify the experts who had joined in that thread...

If you want to awards some point to me you can follow this steps...

You can post a "Points for <expertname>" Q for the expert(s) in the same topic area when you want to reward their help.

1) Post the link to the original Q in the "Points for <expertname>" and
2) Add in the original Q a comment with the link to the "Points for <expertname>", thus the email notif will warn the expert.

HTH...

HAppy programming...

 

by: KourasPosted on 2003-04-10 at 19:01:30ID: 8310907

gladxml ,
I will award you for the next question, coz I haven't got points much now.....And the other thing , is the any way to post a question for example for 10 or 15 points? Coz, when I sometimes search on google, and there's one of the pages on this site coming up with some person's question for 10 points, I'm thinking why I've got limit 20? Maybe that page out of date( rules have changed)?

 

by: gladxmlPosted on 2003-04-10 at 19:44:36ID: 8311055

Kouras,

Actually what you see is 100 points... If the question is anwered they strip off the last digit of the points...

Below are the following:

Please see Tip #11 - Grade quickly and fairly
http://cd-eepages.fateback.com/asking.html

How To Ask Questions The Smart Way
http://www.tuxedo.org/~esr/faqs/smart-questions.html#intro

What do Questions, Comments, and Answers mean on Experts Exchange?
http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp

How do I delete a question?
http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp#8

How do I earn and use question points?
http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp#17

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...