php form help
Posted on
16th Feb 2014 07:03 pm by
admin
Hey,
I use a control file to set my meta tags and titles
Did you know?Explore Trending and Topic pages for more stories like this.
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
Your Answer:
Login to answer
132
26
Other forums
Notice Undefined index: reset/ Attempting to redirect, works, but get a notice
Full Header.php is:
Code: [Select]<?php
$reset= false;
$reset= strip_tags($_GET[&quo
Option box to change variable
Hello, i need help by making a script!
I need to write a file with option box, so a dropdown
Parse String
I need to parse the string below into three variables. How would I do that?
john + 10/20/2008
php - xml what is the best way to do this.
IN essence I want to have a script calling the info from the database.. I have no problem thus far,
Multi Level Array Problem
hi all,
For example I have array like below:
$temp = array(array('north america', 'us'
Dynamic Array using glob?
Is there an easier way to do this?
I am trying to get create a dyamic array based on files wi
Feed Maker
Hi all.
First of all I must say I am not a php developer so I am afraid I don't know much about i
Fetching META TAGS through
Hello everybody
I want to fetch meta tags of a domain.
It will be done from following code of
Port scanner problem
Hai
recently i developed one app through which u can check the opened and closed ports under an
ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th