|
|
|
| Web Hosting |
![]() ![]() |
Php Forms |
Nov 22 2004, 10:21 AM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 10 Joined: 22-November 04 Member No.: 1,479 |
Sorry guys but i dont know how to add php forms can some1 help me plz
|
|
|
|
Nov 25 2004, 04:43 AM
Post
#2
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 17 Joined: 22-November 04 Member No.: 1,483 |
PHP Forms? What kind of Form do you need? Please give us some details on what you are trying to do.
|
|
|
|
Nov 28 2004, 08:58 PM
Post
#3
|
|
|
Super Member Group: Members Posts: 595 Joined: 4-September 04 Member No.: 228 |
I think what Kellafab means is how to process form data with PHP.
It actually is easy as pie. Form variables are stored in global variable arrays called $HTTP_POST_VARS (for post variables, ie. the ones you use if you use post as your form submission method) and $HTTP_GET_VARS (for get variables. For method="get" forms. The difference between POST and GET is that GET variables are sent using attributes in the end of the URL. Ie. what is actually done is that page "form.php?var_1=val_1&var_2=val_2" is requested. POST variables are sent in the HTTP request and thus are not at the end of the URL. So if you have a form which in HTML looks soemthing like this: CODE <form action="form.php" method="post"> <input type="text" name="username"/> <input type="text" name="email"/> <input type="submit"/> </form> In your form.php you would access the variables like this: $HTTP_POST_VARS['username'] $HTTP_POST_VARS['email'] $HTTP_POST_VARS is quite long to use so also $_POST_VARS and $_GET_VARS work too. |
|
|
|
Feb 12 2005, 11:46 AM
Post
#4
|
|
|
Member [ Level 1 ] Group: Members Posts: 48 Joined: 9-January 05 From: Kansas Member No.: 2,062 |
You can also refer to those variables like this:
CODE $_POST['username'] $_POST['email'] If you want a quick tutorial here's one that I've used in the past, shows you the basics of forms and PHP and also using MySQL through PHP. |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
3 | bob3695 | 1,368 | 9th December 2008 - 08:11 PM Last post by: iG-ME.Thanks!! |
|||
![]() |
1 | shiv | 5,441 | 27th May 2008 - 05:48 AM Last post by: iGuest |
|||
![]() |
1 | tansqrx | 6,817 | 9th May 2008 - 09:29 AM Last post by: iGuest |
|||
![]() |
2 | Aldo | 783 | 8th January 2008 - 03:20 PM Last post by: rraallvv |
|||
![]() |
5 | minnieadkins | 976 | 1st February 2007 - 06:50 PM Last post by: minnieadkins |
|||
![]() |
9 | Aequitas619 | 737 | 13th December 2006 - 09:29 PM Last post by: beatgammit |
|||
![]() |
8 | Citezyne | 839 | 2nd July 2006 - 01:01 AM Last post by: vujsa |
|||
![]() |
7 | NewGuyinTown | 1,357 | 20th February 2006 - 08:37 PM Last post by: minnieadkins |
|||
![]() |
2 | pokerforce | 766 | 26th August 2005 - 12:47 AM Last post by: Houdini |
|||
![]() |
2 | nachtgeist03 | 1,025 | 17th April 2005 - 11:52 AM Last post by: jipman |
|||
![]() |
1 | kokushta | 883 | 17th November 2004 - 05:03 PM Last post by: overture |
|||
![]() |
0 | wannabeeaweak | 863 | 25th September 2004 - 04:58 AM Last post by: wannabeeaweak |
|||
|
Lo-Fi Version | Time is now: 7th January 2009 - 06:32 PM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



Nov 22 2004, 10:21 AM




