Hey guys,
Im currently making a php program that runs from 1 main function page. People click on a link which is "setoption.php?a=1&b=2"
Once they have been sent to setoption.php. I collect the variables, send them to the main function page, then redirect the user back to the main page after the function has saved their options.
PHP Code:
if ($functionpage->setOption($_GET['a'], $_GET['p'])) { header("Location: index.php?options=changed"); } else { header("Location: index.php?options=error"); }
Does it take longer to send the person to a seperate page, then use headers to send them back compared with using index.php to process the option?
If it does? what would be the best way to make index.php process the option?
Eg. Instead of the link being "setoption.php?a=1&b=2" would it be best to have it "index.php?a=1&b=2&function=setoption" then have the function page process the data?
I hope this makes sense.
Cheers,
Lothop
__________________
Websites Created;
warscope.com
ratepayers.org.nz
|