parameter passing issue on function


Posted on 16th Feb 2014 07:03 pm by admin

Well I thought I had created a pretty slick web page, using ?page and $_GET to load pages which where really function calls.


Here is a few lines that make up the menu
Did you know?Explore Trending and Topic pages for more stories like this.
Code: [Select]<li><a Href="?page=welcome_page">Home</a></li>
<li><a Href="?page=laninfo_display">Party Info</a></li>

This function loads other functions into the main body of the web page.
Code: [Select]function main_page(){
if ( $_GET['page'] == null ) {
$menu_link = welcome_page;
$menu_link();
}else{
$menu_link = $_GET['page'];
$menu_link();
}
}

All was good till recently I needed to start passing parameters back and forth between some functions. What would be the best way to solve this issue?
No comments posted yet

Your Answer:

Login to answer
66 Like 39 Dislike
Previous forums Next forums
Other forums

Undefined Index Notice In Internet Explorer Only
I am getting the following notice:

QuoteNotice: Undefined index: jrox in /home/ycsn/public_h

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

pspell
using pspell, is it possible to get words that would be best in the current phrase?

For examp

very easy question about SQL info
Hello,
I think that I have a very easy question.
I know how to create a form using php SQL and

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

error help - Dynamic Image
I've been working on making my site less cluttered in the directories and more secure lately. In an

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash