Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP OOP


seCret steVe

Recommended Posts

Would like to know if anyone knows of a good way of creating a object orientated site?

 

Im working on a new php site but have never done object orientated stuff before....

 

example:

 

http://corephp.sourceforge.net/index?act=subscribe

 

that last part is what im talking about

 

hopefully im asking the proper question.

 

Thanks for your time

 

And just to let you know the site is for contribitors, learners, and a resource site. With the help of many people im hoping to make this a new home for php learning and resourcing....a one stop place.....im open for suggestions.

 

Steve

Link to comment
Share on other sites

Oh, right.

 

First, a little vocabulary: this has nothing to do whatsoever with "object oriented." It's called GET parameters. (You also have POST parameters for HTML forms.)

 

When you call a page with GET parameters, they will be available to the PHP code. In your example, you could print the value:

<?php print $_GET['act']; ?>

will print support in you page.

Christian Lescuyer

Link to comment
Share on other sites

Oh, right.

 

First, a little vocabulary: this has nothing to do whatsoever with "object oriented." It's called GET parameters. (You also have POST parameters for HTML forms.)

 

When you call a page with GET parameters, they will be available to the PHP code. In your example, you could print the value:

<?php print $_GET['act']; ?>

will print support in you page.

 

And this is you lesson in PHP for the day, learn it well. So, what are we learning next week, teach? I hope something fun!! :D :D

Steve

-------------------------

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...