USING REQUEST OBJECT

Results 1 to 3 of 3

Thread: USING REQUEST OBJECT

  1. #1
    JAN RAYNOR Guest

    Default USING REQUEST OBJECT

    I have set up a simple form asking the user their name and presenting the name back to the user in a different size.To do this I used the REQUEST object but it doesn&#039t work. The code is:<BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;&#060;T ITLE&#062;TEST RUN&#060;/TITLE&#062;&#060;/HEAD&#062;<BR><BR>&#060;% If Request.Form.Count = 0 Then %&#062;<BR><BR>&#060;FORM METHOD="POST" ACTION="TEST.ASP"&#062;<BR><BR>&#060;B&#062;&#060; ENTER YOUR NAME PLEASE&#060;B&#062;&#060;INPUT TYPE="text" LENGTH="50" NAME="yourname"&#062;<BR><BR>&#060;P&#062;&#060;IN PUT TYPE=submit VALUE="Submit"&#062;<BR><BR>&#060;% ELSE %&#062;<BR><BR>&#060;CENTRE&#062;&#060;H1&#062;&#0 60;% Response.Write Request.Form("yourname") %&#062;&#060;/H1&#062;<BR><BR>&#060;% END IF %&#062;<BR><BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR> The error i get is ::Object doesn&#039t support this property or method &#039Request.Form.Count&#039

  2. #2
    Brad Foust Guest

    Default RE: USING REQUEST OBJECT

    Try using &#060;% if request("CONTENT_LENGTH") = 0 then %&#062; rather than &#060;% If Request.Form.Count = 0 Then %&#062;.<BR><BR>Hope it helps!<BR>-brad<BR>

  3. #3
    ActiveALLI Guest

    Default RE: USING REQUEST OBJECT

    Or you could just do:<BR>...<BR>if Request("yourname")="" Then <BR>...<BR><BR>

Posting Permissions

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