If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > need help with php plz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 01:22
noamkrief noamkrief is offline
Registered User
 
Join Date: Dec 2003
Posts: 61
need help with php plz

how can i create this type of if statement?


if ($variable!='hello') {$variable='';}

how do i do this if i don't want to predefine that variable?

my example doesn't work since it doesn't initially know what $variable is. in that case, i want it to assume that if it doesn't know, give it a value of '' (nothing).

That variable can actually be valued at 'hello' since i have a form pointing to its page with that variable.

anyone can help?
noam
Reply With Quote
  #2 (permalink)  
Old 01-10-04, 01:56
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
PHP?

This is an ASP forum! Sorry!
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 02-03-04, 04:34
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Some good PHP resources:

php
http://www.php.net
(Especially http://www.php.net/manual )

PHPBuilder
http://www.phpbuilder.com

phpfreaks
http://www.phpfreaks.com

PHP FAQTS
http://php.faqts.com
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On