|
just another regularban.info web blog |
| MEMBERS: | Using Functions
Functions are used to perform a well defined task that is normally repeated at various places within a web site, web application, or other software application. The function sometimes needs certain information before performing its task, and sometimes returns a value to the calling page or program. An example of how to use a simple function in PHP: function showMessage() {The above example shows a very simple function that displays the contents of a session variable called 'message'. The idea being that while a user is using a web site, etc, various messages are generated and stored in the 'message' session variable. Whenever the showMessage function is called, the contents of the session variable are displayed. So, for example, when the user logs on, you could display a message saying that they have done so. Likewise, when they log off, a different message could be displayed. Calling a function To call the showMessage function, you would just need to include the line: showMessage() in the web page (wrapped in php tags to distinguish it from normall HTML). Passing values to a function Often, a function requires one or more input values in order to perform its task. For example, take the following example that takes two numbers as input, and adds them together. The result is then returned to the calling web page or program. function addNumbers($number1,$number2) {In the calling program we would have something similar to the following: $number1 = "5"; Obviously, in a real program you would not have the numbers hardcoded like this, but they would be obtained from user input or by some other means. Notice also that although the name of the returned variable is $answer, the calling program makes no reference to that. We could, if we wanted to, change the calling program to: $answer = addNumbers($number1,$number2); which might make things slightly easier to understand.
How to Have Your New Virtual Assistant Website Built the Cheap Way
Normally, if you want a professionally designed, custom-built website for your new virtual assistant business, you should be prepared to spend at least a few hundred dollars. But, all that can change if you know where to find the best deals and the best designs for the lowest price. First, it costs more to have a brick-and-mortar company design a website for you. Have you seen those newspaper ads that offer a 5-page website for $500? These are probably companies with physical locations. They have to charge more simply to pay for their overhead: office rent, designers' wages, advertising costs and so on. Therefore, it would be wise to use a virtual assistant (VA) instead! As you already know, VAs often work from home so they do not have high operating costs like a big company does. On the other hand, a VA will be able to design images with quality similar to (or better than!) those of designers from big companies. However, choose your VA with care. The best way to find the right VA for your project would be to go to visit the website of a VA association. There you can post your RFP (request for proposal) and have hundreds of talented VAs bid on your project, so you will get the best deal. You will also be able to choose your designer based on her experience, past transactions and client testimonials, so your value for money is secured. Another route you can take is to purchase the Virtual Business Startup System, created by Tawnya Sutherland. It comes with several beautiful, easy to use templates, perfectly suited for a new VA. The templates are easy to edit wth the help of WYSIWYG (what you see is what you get) programs such as Microsoft Frontpage, Macromedia Dreamweaver and so on.
Do You Want To Build A Real Revenue Generating Website?
There are many advantages to building a good website. A good website is like good real estate. A good website is measured by the quality of traffic it receives and the value of content it contains. Good websites get linked to naturally. This is powerful when it comes to search engine optimization. So your goal when building a website is to build it properly from the ground up. The first element of building any website is research. What is your site going to be about and how are you going to provide good quality content. Good quality content is king online. People jump online everyday seeking information in one way or another. This can be for entertainment purposes or for the purpose of research. Good content is going to have good research behind it. While this may all sound a little complicated it really is not. Always remember to keep it simple and do not lose sight of the fact that this medium in essence is no different than others. You will still need to communicate with people and as result you will develop relationships that will benefit all parties concerned. When you provide benefits and show results you will develop credibility resulting in a website that will make you money not just today but well into the future. As you know you will always know the difference between somebody who loves what they do and somebody who does not. So choose a topic of interest and research it extensively and help you visitors do what's best for them and the rest will be history To learn more about how you can put this together select any of the following links.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |