Kamis, 19 September 2013

Example Project of Condition

this thread contained an Example Project of Condition, before following this
tutorial, if you not knowing about Condition, read my post before about 
Condition, Array and Looping.

1. Create new HTML Document on your Site, Right Click on Site -> New File ->
name it "conditional_form.html" or what ever you want.

2. Insert this in your HTML form:
3. Create new PHP Document on your site, Right Click on Site -> New File -> name it "conditional".php" or what ever you want.
4. we create a variable to store the data sent, then checks whether the data is sent empty or not. If you do not check the selected gender, Add this code inside 'conditional.php.
5. Before test for Run, if you use Dreamweaver, please check 'Follow Links Con- tinously' and 'Use testing server for Document Source' first, this needed when you want appear in Live, that setting at "conditional_form.html".
6. And try to Run it in Live mode :
7. So the output will be seen like this :)

0 comments:

Posting Komentar