Jump to content

Archived

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

seCret steVe

PHP OOP

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

Share this post


Link to post
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

Share this post


Link to post
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

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

Share this post


Link to post
Share on other sites

hey thanks.....i will work on getting that implemented into my site for a nicer look and easier navigation.

 

What are we learning next week....well depends on what im going to start working on

Share this post


Link to post
Share on other sites

×