|
-
Dec 6th, 2001, 04:30 PM
#1
Thread Starter
Fanatic Member
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.
-
Dec 6th, 2001, 04:40 PM
#2
Frenzied Member
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.
-
Dec 6th, 2001, 04:46 PM
#3
Thread Starter
Fanatic Member
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 ??
-
Dec 6th, 2001, 05:17 PM
#4
Frenzied Member
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.
-
Dec 6th, 2001, 05:21 PM
#5
Thread Starter
Fanatic Member
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)
-
Dec 6th, 2001, 05:29 PM
#6
Thread Starter
Fanatic Member
****, 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]
-
Dec 6th, 2001, 05:39 PM
#7
Frenzied Member
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.
-
Dec 6th, 2001, 05:58 PM
#8
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|