Aaah, thanks guys. I will try your fixes and see what works.
Tarwn, thanks for your explanation. I figured I had gone wrong in the logic somewhere but didn't think of the condition always resulting in true.
Uuuuummmm, well I shall try and use your insight to get a true or false result.
Cheers!
Maybe I have done this incorrently but I am trying to say:
PageID is not equal to 2. Put that fact into a variable called page 2. Then in the If statement say:
If page2 (i.e. Request.QueryString("PageID") <> 2) Then
//Do this....
It was just to save doing If...
Hello,
could someone help? I have a simple if statement for error handling that basically states:
If a page exists display the page, if it does not display an error. I cannot get this to work. The logic escapes me for some reason and it is doing my head in!
Dim page2, page3, page4, page5...
Don't think I want to do that actually,
I think I need to do somethign like this:
Dim EmailBody
For i=LBound(mode_a) to UBound(mode_a)
EmailBody = mode_a(i)
However, the array simply overwrites the values so only the last one is output. How can I Add each value to EmailBody without...
Hi,
I am struggling to work out how to grab and contain array values in variables so that they can be used to form an email enquiry. I am knew to checkbox processing and asp arrays in general!
This is my code so far, and it outputs the array values to screen, but I need to put these values...
I am having trouble rendering rounded corners on a div that is a navigation bar. The code works fine in every page except a page which has flash embedded in it.
It appears that an onLoad event that is in the
HTML is ignored when there is a Flash movie embedded in the page.
I am using a script...
Hiya,
I have been connecting to my uni via VPN all of last night with no issue whatsoever.
This morning whenever I try to connect through my VPN connection Norton pops up a message:
Rules automatically created for the program: Windows explorer.
The VPN does not connect and tries to redial...
Hello! Got a problem chaps!
I have this code to create a wap site from one card.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<wml>
<card id="Stories" title="Dingley Dell News">...
I am keeping an eye on the task manager and researching any thing that looks a bit dodgy for security as a whole.
I noticed a process dllhost.exe and looked it up on the internet. Some say it is part of the OS, others say it is part of IIS.
I run IIS for testing ASP, and I have been informed...
Hiya!
I am writing a query to group by a particular set of attributes and order by another set of attributes.
What I want is an alphabetical list of species name, but grouped into the species family.
i.e.
Duck
--------
Garganey
Goosander
Woodduck...
So I guess what I am asking is, how would you code:
"Look in $_POST
If not in $_POST, look in $_SESSION
If not in $_SESSION, get values from the user."
I understand what you are saying now, but I do not know how to approach coding it.
sleipnir214 (Programmer) Aug 18, 2004
Your script is assuming that the values its looking for must be in either $_POST or $_SESSION. This is not a valid assumption -- suppose that your user is going to a protected page and must login for the first time -- the values will be in neither place...
Now I AM confused.
Are you saying that I need another function of some sort in the same script?
What is to stop that from knackering up? I mean if the script is run before the user inputs their details, How can I specify a default value?
I do not think I want it to be a default value, it...
So the code is saying
//if a value is entered into textfield 'email_ID', then $uid will hold that value, else get the value from $SESSION['email_ID'] that was specified earlier in the session ID or use a default value already accounted for ?
if (isset ($_POST['email_ID']))
{
$uid =...
sleipnir214 I am a noob!
I am using the ternary operator? Have you just coded
"$uid = isset($_POST['email_ID']) ? $_POST['email_ID'] : $_SESSION['email_ID'];
by doing this:
if (isset ($_POST['email_ID']))
{
$uid = $_POST['email_ID'];
else
{
$uid = $_SESSION['email_ID'];
}
sorry, at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.