"Show If" in Dreamweaver

PHTech

Senior Member
Joined
Aug 21, 2006
Messages
588
Reaction score
0
Location
Witbank
Hi there...

Does anybpdy knows how to put something similiar to a "Show If" function into a webpage using DREAMWEAVER CS3...?

Eg: To Hide a form element when a value in the database is not equal to the criterea...

Any help would be appreciated...
 
If I understand you correctly, you want to use a show-if function in CS3? Go to the application window on the right, select the item you want to hide/show and then click on Application->Show If. You have several options there.
 
If I understand you correctly, you want to use a show-if function in CS3? Go to the application window on the right, select the item you want to hide/show and then click on Application->Show If. You have several options there.

Thanx... Have found it there... Sometimes a little looking around certainly helps...

On the other posts I saw the guys mentioning using PHP and ASP.NET... When using Dreamweaver it automatically adds the PHP or ASP tags...

Thats also why I love Dreamweaver so much...!:)
 
Remember - PHP or ASP.NET isn't only about "adding tags". It's all about the back-end coding. The stronger your coding base, the more powerful and scalable your application will be. It's really worth it learning one of those languages... ;)
 
A lol when somebody uses Dreamweaver for PHP dev.

Actually it works quite good for me... As I am still learning the code (without any compiler or wizard), Dreamweaver works totally good for me... Any other better programs that you might recommend...?
 
Actually it works quite good for me... As I am still learning the code (without any compiler or wizard), Dreamweaver works totally good for me... Any other better programs that you might recommend...?

vi?
 
Ok, if you're still learning I suppose Dreamweaver is alright. I strongly recommend taking a day off and reading some tutorials at http://www.w3schools.com/ or http://www.tizag.com/ - you're going to need to advance some day. :)

If you're serious about web dev you could even order some books from amazon.

Thanx...! I will definately have a look at those URLs...! Thanx for the advice...!
 
A lol when somebody uses Dreamweaver for PHP dev.

I use it in the professional world. Works really well for me, saves me a lot of coding time. If I need something custom I will use the closest CS3 function and the customise it to suit my needs.

I might be a Linux junkie but there is no close competitor for Dreamweaver. Not even close.
 
I use it in the professional world. Works really well for me, saves me a lot of coding time. If I need something custom I will use the closest CS3 function and the customise it to suit my needs.

I might be a Linux junkie but there is no close competitor for Dreamweaver. Not even close.

Thanx Froot...! As I am developing an Intranet site for Xstrata, I also find that nothing compares with Dreamweaver (that of the programs that I have tried...). There is also so MUCH you can do with Dreamweaver, and thats why I am posting alot of threads concerning Dreamweaver stuff...!
 
I have managed to get the SHOW IF thing to work when the recordset is empty or not empty:

PHP:
<?php if ($totalRows_rs_ScreenPIB == 0) { // Show if recordset empty ?>

Now I want to change it to, when a Field in the recordset is equal to 'Y' it must do the same: I have changed it to the following, but does not seem to work...

PHP:
<?php if ($row_rs_ScreenPIB['Successful1'] == 'Y') { // Show if recordset empty ?>

Any suggestions what I could possibly have done wrong...?
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X