Hey,
I use a control file to set my meta tags and titles
Here's an example
Code: <?php
switch ($sheet_name) {
case 'page-2'://The page that has $sheet_name equal to the case value, this is the link to tell the page what info to use
{
$page_id = "2";//Standard Page ID
$page_location = "home";//Multi Purpose control, Adds Menus, forms or whatever you create.
//Header Controls
$level_value = "inc";//Used for Path to Stylesheets and Scripts
$title = "About Us";//Title of Page
$meta_desc = "About Us";//Description of Page
$meta_key = "About Us";//Keywords of Page
//Add Different Elements
$content_area = "true";
break;
}
?>
I want to eliminate the need to open this control.php file, I want to use a form to update the case variables.
Any suggestions? Little bit lost on where I should start since I have only posted to a database.
Reason for doing this, everything else is done through an admin panel except this one file and I would like to integrate it with the admin area to eliminate the need to open any files.
** side note, this is a template site I built, and does not use a database, crucial for the market im in
Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still learning PHP and I have been for a few months now, but every now and then I get stuck on small things.
Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The server response was: <andrewsmd87@gmail.com> No such user here
Scrolling news bar and MySQL
I am not sure if this is the correct forum to post this on. If not, I apologize. I am still pretty new to PHP. I am editing a website for a friend. He had a news headlines section on his home
How to replace search button with link?
hi to everbody.i have a search submit form and button like this :<form id="f1" name="title" method="post"
Need help in log in and log out?
hi there all of u. i have recently created a site for someone. i have placed log in and log out and some links . but those sessions are not working correctly when some one sign in and sign out and
Login logout link help
Hi all,Im new to php and Im having trouble creating a login/logout link for my page that displays as: Log Out | My Account.when a member is signed in, And: Log In | Sign UpWhen no one is signed in.The
Quick variable question
hey guys/gals, im trying to write a php script and it works fine as i have it, but i need to set it to where it pulls the var from mysql table that it is displayed differeantly. i.e. if $var==abcdefg
Server side $_SESSION
how does one keep the session completely server side. no cookies to the browser at all. i need this site to be cookie and jscript free.
Pre-Fill out a PHP form...??
This is for work actually (geek squad). We have to fill out this online php form at work over and over again to set up these new laptops, we log on to this website and have to select all this stuff. I
Help =( !! Upload Pics [PHP script]
HelloI need help with a php script [MULTIPLE UPLOAD IMAGES] , where I want to add a feature (watermark the uploaded pictures) , thats mean its watermark & upload in the same time . look this