a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Problem with checkbox and variable

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Problem with checkbox and variable
Page: [1]
 
adam2804

 

Posts: 34
Joined: 6/6/2006
Status: offline

 
Problem with checkbox and variable - 6/6/2006 11:17:30   
Hello,

This is my first post on this site, but have read a large number of posts and they have all helped me out a great deal. For the following problem I couldn't find any help, so some advice would be gratefully recieved.

I have a (FrontPage) page that a checkbox multiplies a number submitted by a certain figure. This figure can change depending on the site that the work takes place. Therefore I need to get the multiplier from the database (The multiplication of the number bit works fine). I can't seem to figure out how to get an integer back from the database.

Here's what I've got so far:

this is the query bit:
<% uploadind = fp_sQry="SELECT TB_Site.UpliftMultiplier FROM TB_Site INNER JOIN Customers ON TB_Site.ID = Customers.SiteID INNER JOIN Jobs ON Customers.CustomerID = Jobs.CustomerID WHERE (Jobs.JobNumber = ::JobNumber::)" %>

then here's my checkbox bit:
<input type="checkbox" name="Uplift" value=<%=uploadind%> checked>

Thank you in advance for your help.

Kind Regards,

Adam
Spooky

 

Posts: 26617
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Problem with checkbox and variable - 6/6/2006 11:36:48   
Welcome Adam,
The theory you are using to retrieve the variable is wrong.
You need to perform the query via the DRW :
fp_sQry="SELECT TB_Site.UpliftMultiplier FROM TB_Site INNER JOIN Customers ON TB_Site.ID = Customers.SiteID INNER JOIN Jobs ON Customers.CustomerID = Jobs.CustomerID WHERE (Jobs.JobNumber = ::JobNumber::)"

Then - in the results part of the DRW you would assign the output to a variable.
Are you able to construct that DRW page first?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to adam2804)
adam2804

 

Posts: 34
Joined: 6/6/2006
Status: offline

 
RE: Problem with checkbox and variable - 6/7/2006 5:57:04   
quote:

results part of the DRW you would assign the output to a variable


Thanks Spooky,

I've setup my DRW now and used the query there, which is fine.

But can't seem to see where to assign a variable to the results?

Sorry, but I've not really used frontPage before, but have got to now as it's what the company uses!

Thanks,

Adam

(in reply to Spooky)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> ASP and Database >> Problem with checkbox and variable
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts