Current location: Hot Scripts Forums » Programming Languages » PHP » What's difference: POST and GET?


What's difference: POST and GET?

Reply
  #1 (permalink)  
Old 02-09-05, 08:54 PM
mhs12grade1992's Avatar
mhs12grade1992 mhs12grade1992 is offline
Newbie Coder
 
Join Date: Feb 2005
Location: USA
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
What's difference: POST and GET?

What's the difference between POST and GET? I think GET means to load arrays from the database and I know, in fact, POST means to record arrays at the database.

Am I right?
Reply With Quote
  #2 (permalink)  
Old 02-09-05, 10:58 PM
phprogramming phprogramming is offline
Wannabe Coder
 
Join Date: Nov 2004
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
ur wrong, it doesnt use a database all the time, get will put everything u have in ur form into the URL, ex

<input type="text" name="g" value="dog">
<input type="text" name="d" value="god">

$_GET will put into the URL once the form is submitted, file.php?g=dog&d=god
and so on for more fields

$_POST dosent do that **** in the URL
__________________
Source Code Talk - Programming Discussion, Tutorials, and More!
Reply With Quote
  #3 (permalink)  
Old 02-10-05, 01:58 AM
SwitchBlade SwitchBlade is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
yah in my opinion if your submitting data through a form just use $_POST because it looks a lot better and you dont see all that **** in the url.

If you have a link thats like http://www.gcshideout.com/view.php?file=20 then yse $_GET['file'] to get the "file" value which is 20
Reply With Quote
  #4 (permalink)  
Old 02-10-05, 04:19 AM
mhs12grade1992's Avatar
mhs12grade1992 mhs12grade1992 is offline
Newbie Coder
 
Join Date: Feb 2005
Location: USA
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Then what kind of PHP language should I use to record arrays in the database. Likely forum..... writing a message and save it on the board. It records the message on the database, right?

All I want is to create my own membership login. Example: I want my visitors to create their own story in text and save their story in the data of their account. Later when they login and they want to load their story from the data in their account. How to do it? Using POST?? Using fopen()?? INSERT INTO?? SELECT FROM?? CREATE DATABASE??

MHS

Last edited by mhs12grade1992; 02-10-05 at 04:53 AM.
Reply With Quote
  #5 (permalink)  
Old 02-10-05, 08:57 AM
phprogramming phprogramming is offline
Wannabe Coder
 
Join Date: Nov 2004
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
i think u need to read a book or some more tutorials before u try, because u dont even know the basics :S
__________________
Source Code Talk - Programming Discussion, Tutorials, and More!
Reply With Quote
  #6 (permalink)  
Old 02-10-05, 09:17 AM
FiRe FiRe is offline
Code Guru
 
Join Date: Oct 2004
Location: UK
Posts: 801
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
Alexa Share <-- Trade virtual shares in websites with this online game.

codR.us <-- Submit and vote for your favorite code snippets with codR.us.

XEWeb.net <-- The ultimate PHP resource network.
Reply With Quote
  #7 (permalink)  
Old 02-10-05, 10:46 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by mhs12grade1992
What's the difference between POST and GET? I think GET means to load arrays from the database and I know, in fact, POST means to record arrays at the database.

Am I right?
You're completely incorrect. Neither of them have anything to do with databases whatsoever. You REALLY need to learn some basic stuff before plunging into a project like this.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #8 (permalink)  
Old 02-10-05, 10:02 PM
mhs12grade1992's Avatar
mhs12grade1992 mhs12grade1992 is offline
Newbie Coder
 
Join Date: Feb 2005
Location: USA
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
I just read through the book and found out how to record arrays in the database. Use INSERT INTO is part of recording arrays. Like my visitor save his own story in his account. Later he login and load the story. I know loading a data by using SELECT FROM and save data is using INSERT INTO. That is what I found out.
__________________
Sincerely,
MHS (Mansfield High School)

Create your own short/long story within few minutes.
Simply fill out the form and it will write the story itself.

Go to: www.storymakerpro.com

Am I rich in million or just my 2 cents poor?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get em while they're HOT planecrazy69 General Advertisements 0 06-15-04 04:18 PM


All times are GMT -5. The time now is 05:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.