Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > PHP Programming

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 03-14-2009, 12:00 PM
Administrator
Site Admin
 
Join Date: Jun 2008
Posts: 342
Default A journey leads to php....

PROCESSING FORMS

What is one thing almost everyone wants to do with their website? Have a contact form. And, it isn’t as difficult as you’d think. We’re going to use the PHP mail() command to make one.

Make an HTML form with Name, Email and Message fields. Take the code below and place it in a PHP file to use as your action.

<?php
mail("myaccount@myisp.com", "Form Feedback", " // your address and subject
Name: $name
Email: $email
Message: $message
", "From: $email");
// Display results
echo("
<html>
Name: $name
Email: $email
Message: $message
</html>
");
?>


Section Two Overview

In this section, we covered some more advanced features of PHP. Not for the timid, but not impossible to grasp!

IF - Do something if something is true.
ELSE - Do something else if it isn’t
ELSEIF - Add more choices to IF
SWITCH - Use this if you have a lot of ElseIf’s
ARRAY - One variable, many values
ASSOCIATIVE ARRAY - One variable, even more values
LOOPS - For, While, For Each - A way to repeat code
FUNCTIONS - Turn a big code chunk into a small one
SESSIONS - Carry unique data from page to page
COOKIES - Store session data on your viewer’s computer
FORM PROCESSING - Process web forms, such as a mailer


QUIZ

1. What are the 3 ways to comment code in PHP?
2. ELSEIF cannot be used without __
3. What are Cookies used for in PHP?
__________________
Christian Prayer Forum
Reply With Quote
  #22 (permalink)  
Old 04-30-2009, 05:54 PM
Junior Member
BizHat Newbie
 
Join Date: Apr 2009
Posts: 1
Default

thanks man
Reply With Quote
  #23 (permalink)  
Old 05-03-2009, 07:23 PM
Junior Member
BizHat Newbie
 
Join Date: Oct 2005
Location: Ernakulam
Posts: 1
Default

thanx a lot for this tut.!
Reply With Quote
  #24 (permalink)  
Old 05-06-2009, 04:27 AM
Junior Member
BizHat Newbie
 
Join Date: May 2009
Posts: 3
Default

WOW!
this is a good One. I've bookmarked it for future reference. this time I'll concentrate on my web page designing. CSS and HTML
Then back here when I'm ready.

Thanks a lot
Reply With Quote
  #25 (permalink)  
Old 06-17-2009, 03:52 PM
Junior Member
BizHat Newbie
 
Join Date: Jun 2009
Posts: 5
Cool

Thank you for TUT
Reply With Quote
  #26 (permalink)  
Old 08-01-2009, 09:42 AM
Junior Member
BizHat Newbie
 
Join Date: Aug 2009
Posts: 4
Default

this is free phpnuk hosting.free and easy make your forum:
www.greatnuk.com
Reply With Quote
  #27 (permalink)  
Old 09-21-2009, 02:35 PM
Junior Member
BizHat Newbie
 
Join Date: Sep 2009
Posts: 6
Default

ois bullshit
Reply With Quote
Reply

Bookmarks

Thread Tools
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



All times are GMT. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0