![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Hope this makes sense.. I need to add a short note at the top of a certain ASP products list. What ASP code would I need to add to check to see whether product with an id number is in the HTTP request? So, in PHP something like this at the top of the product or page.. ?php if ($_GET["prod"] == 1) {print "text for product 1"; } elseif ($_GET["prod"] == 2) {print "text for product 2"; } else {print "default text"; } ? For example 'If yes' it displays the text for product 1, if no it checks for product 2 etc. If neither product id is in the HTTP request it displays the default text (which might be blank I guess). Not sure.. |
![]() |
| Thread Tools | |
| Display Modes | |
| |