Dreevoo.com | Online Learning and Knowledge Sharing
 
Home | FORUM | Published content on Dreevoo.com | Create a simple PHP form
Gost
Click to view your profile
Shortcuts
Fresh topics Fresh topics
My topics My topics
Unanswered topics Unanswered topics
Forum rules Forum rules
Who is online?
Registered users: Registered users:
Guests: Guests:

 
  Create a simple PHP form
   
   
 
 
 
USER
MESSAGE
  Click to open user profile  
27th Feb 2013, 12:00 AM
Today we will learn how to create a simple form in HTML and how to use this data in PHP.


Link to the content ...
 
 
  Click to open user profile  
3rd Apr 2013, 4:02 AM
i''m new in php but i enjoy something here ,so thanks..........
 
 
  Click to open user profile  
3rd Apr 2013, 4:56 AM
Welcome to our community, suneeil.

If you have any questions, please don't be afraid to ask. We will do our best to give you the best answers and help you with anything.

changed: mat (3rd Apr 2013, 2:51 PM)
 
 
  Click to open user profile  
1st Aug 2013, 10:14 AM
thanks for the simple and encouraging example you load here.
my question is this "after changing the GET to POST , name and values disappear?? is this value store in the database"
 
 
  Click to open user profile  
1st Aug 2013, 10:34 AM
No, this value is not stored in database.

Difference between GET and POST is just in a way the data is sent forward to the next page.

In case of GET, the data from the form is appended to to URL after the character ?
(e.g. lesson3.php?name=your_name&value1=1234&value2=5678 )

In case of POST, the URL stays the same (e.g. lesson3.php) and this data is sent in a special packet that is not visible to the end user. Usually you use POST if you want to send a lot of data.

From the programming side of view, if you change form method from GET to POST, you should also change all the variables in the code from $_GET to $_POST
(e.g. $_GET['name'] should become $_POST['name'])

I hope this answers your question. If you have any other questions, just let me know.

changed: podtalje (1st Aug 2013, 7:36 PM)
 
 
  Click to open user profile  
3rd Dec 2013, 7:16 AM
Hello, can someone help me build a forum from scratch? I know little about PHP and MySQL. thanks
 
 
 
   
   
 
online learning made for people
Dreevoo.com | CONTRIBUTE | FORUM | INFO