The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Im lerning php and just experimenting and messing around with a few stuff.
Ive written this code in dreamweaver ( Thanx for you tutorial MindTrix, https://vborg.vbsupport.ru/showthrea...ghlight=elseif ) ![]() Heres the code: Code:
<?php $name = "Jaynesh"; if ( $name == "Bob" ) { print "Yes my name is $name"; } elseif ( $name == "Johnny" ) { print "Yes, My name is Johnny"; } elseif ( $name == "Mark" ) { print "Yes, My name is mark"; } elseif { $name == "Sarah" ) { print "Yes, My name is sarah"; } else { print "No, My name is $name"; } ?> e.g Imagine there is a form on a page, and when the user types the name Mark it will say Yes, My name is mark And if a user types a name which is not coded in the form it will say No, My name is Jaynesh. |
#2
|
|||
|
|||
![]()
let's say you had a form with the field
<input type="text" name="username" /> Use this code PHP Code:
|
#3
|
|||
|
|||
![]()
Cheers
![]() ![]() |
#4
|
|||
|
|||
![]() Quote:
PHP Code:
|
#5
|
|||
|
|||
![]()
Okay thankyou
![]() How will i use that with a form? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|