Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Request Object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Request Object

 Post Reply Post Reply
Author
ziwez0 View Drop Down
Groupie
Groupie


Joined: 15 July 2002
Location: United Kingdom
Status: Offline
Points: 144
Post Options Post Options   Thanks (0) Thanks(0)   Quote ziwez0 Quote  Post ReplyReply Direct Link To This Post Topic: Request Object
    Posted: 09 April 2003 at 3:41pm

Hello,

Ive assigned a value to a link

<form action="next.asp" method="post">

<a href="next.asp" value="one" Name="Holiday">Click here</a>
</form>

And on the "Next.asp" page...

<!--#include file="Top.asp" -->
<%
objFlorida = Request.Form("Holiday")
%>

<%


Dim Conn, dbPath
  dbPath = Server.MapPath("/Database/photolibary.mdb")
  Set Conn = Server.CreateObject("ADODB.Connection")
  Conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0; DATA SOURCE=" & dbPath

Set UserRecordset = Server.CreateObject("ADODB.Recordset")
sqlstring = "select * from Photo where SubCat = '" & objFlorida & "'"


UserRecordset.Open sqlstring, conn

Set objid = UserRecordset("ID")
set objLargeImage = UserRecordset("LargeImage")
Set objSmallImage = UserRecordSet("SmallImage")

While NOT UserRecordset.EOF
%>

<TABLE>

<%

Response.write "<tr><td><img src='Florida/" & objsmallImage & "'></td>"
UserRecordset.MoveNext
Response.write "<td><img src='Florida/" & objsmallImage & "'></td>"
UserRecordset.MoveNext
Response.write "<td><img src='Florida/" & objsmallImage & "'></td>"
UserRecordset.MoveNext
Response.write "<td><img src='Florida/" & objsmallImage & "'></td>"
UserRecordset.MoveNext
Response.write "<td><img src='Florida/" & objsmallImage & "'></td>"
UserRecordset.MoveNext
Response.write "<td><img src='Florida/" & objsmallImage & "'></td></tr>"
UserRecordset.MoveNext
wend

%>
</TABLE>
<%

 

conn.close
%>
<!--#include file="bottom.asp" -->

So the out come is nothing, i dont get any errors and i dont get  images i told it to pull out if value ="florida"

any ideas?

If anything takes long to do its worth doing.
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 4:12pm

u cant use a link as part of the <form> tag. You have to use a submit button, <input type="submit" value="Submit">

Then for the 'Holiday' field u need to have a hidden value (or make an input). So for a hidden value it would  be, <input type="hidden" value="one" name="Holiday">

Or if you want a text box so you can enter do, <input type="text" value="one" name="Holiday" size="20">

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 9:42pm
wow.. trying to do all that vbscript and don't even know basic HTML forms?

yikes, time to brush up on the basics....
Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.