Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox for reciept request

Status
Not open for further replies.

PaulSc

MIS
Aug 21, 2000
148
GB
Can anybody help please.

I have an asp generated page which displays a confirmation order screen along with a submit button, which redirects the customer to another site.

The requirement is not to add a field (Checkbox?) so that the customer can request a reciept.

I have added a checkbox using the following code which then sets a session variable if they tick the box.

-------------------------------------------------------
<P>If you require a printed reciept, confirming your order, please tick here <input type=&quot;checkbox&quot; name=&quot;reciept&quot; value=&quot;OFF&quot;></p>
<%if request(&quot;Reciept&quot;) = &quot;&quot;
session(&quot;Reciept&quot;)=0
else
session(&quot;Reciept&quot;)=1
end if
%>
----------------------------------------------------------

My problem is that if they update the checkbox the code is not being reactivated, i.e the session variable is not being updated.

Can anysuggest where I may be going wrong or suggest a way of achieving this.

Thanx

PaulSc
 
I know this is a dumb question, but is the code you've specified all on one page? And if so, does the page submit to itself? Cos if not, that'd be your problem right there. The whole &quot;not hitting the server and therefore not updating session var&quot; thing . .
Or am I insulting your intelligence?! Sorry . .
:p --------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
Doh.....
silly mistake on my part..... thanks for putting me straight!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top