Results 1 to 8 of 8

Thread: pleeeze help ASP

  1. #1

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    pleeeze help ASP

    hey ther

    i'm kinda new to asp and dont know much so sorry if i ask dumb questions some times. ok, i'v created a page that recieves variabled from another pages form, i can pass variables fine; but i wanna have a table that only displays the data that HAS been put in.

    ok, i have 3 fields on the first page, "Fname" "Lname" "Wpage" .
    now the "Fname" and "Lname" ones are compulsory but the "Wpage" isnt. on the ASP recieveing script i have then displayed into a table where each cell has different colors but when i try and put in something like this:

    PHP Code:
    response.write "<tr bgcolor="#0033cc"><td>"
    response.write "your webpage URL is:" Wpage 
    response
    .write "</tr></td>" 
    it doesnt let me do this, why and how can it be dealt with ???

    thank you to anyone who finishes reading my post or can help me, any help greatly appreciated.

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Ah, ASP has built in objects to let you access POST data. So the form that they filled in and submitted... well...

    Code:
    <tr>
      <td>
        <%=Request.Form("Wpage")%>
      </td>
    </tr>
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    yes, i know how to do that, but in that example the cell would still exist, i'm trying to make it either create the hole cell with the response in it, or not create the cell at all. u know what i mean ??

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Wow... the let just anybody program now a days.

    Code:
    <%
      If Response.Form("Wpage") <> "" Then
        %>
          <tr>
            <td>
              <%=Request.Form("Wpage")%>
            </td>
          </tr>
        <%
      End If
    %>
    That is a lot of context switching, but it works.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    lol, i recon

    ok, so ur trying to get some variables from an input field in an HTML page to foreward it to an asp page where it will put the variable into the cell of a table. werll i have to go soon so i'll quickly write u up something that'll do it and hope its correct and what u need.


    ME ! (michael)

  6. #6

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    ****, didnt have time to write a whole one. but i have used that same thing in this example i have attached. if u have any trouble just email me at [email protected]

  7. #7
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Originally posted by ubunreal69
    ok, so ur trying to get some variables from an input field in an HTML page to foreward it to an asp page where it will put the variable into the cell of a table. werll i have to go soon so i'll quickly write u up something that'll do it and hope its correct and what u need.
    Uhm... I'm not trying to do this, you are.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  8. #8

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    sorry, i was in the bigest rush to recieve a phone call at an exact time.

    in "normal me" mode what i was trying to way is that i have created the page, but i am sure there is some command that actaully allows a response to be declared as HTML and will allow what i am trying to do to be done. have u looked at my code ?? do u know what i mean ??

Posting Permissions

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



Click Here to Expand Forum to Full Width