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
how to remove in php string display
My code is
$message="We're looking at developing our website.";
$body= "
BSP Ext - tableView - Sort - NEWBIE
Hi,
I have been trying to get the sort to work. I have defined the column definitions by fillin
Attempt to assign property of non-object in...
I'm having issues with the following function in PHP 5...
function getTreeWithChildre
$get problem
Hi Guys ...
can you please tell me what i am doing wrong here
Code: <?php
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
webpage with (simple) login & mysql-db
Hi all,
What I was looking for before was a multi-user password manager, web-based! The offer
MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl
foreach iterator
Hi Guys
Does the foreach loop have an inbuilt iterator ?
having probem inserting data into db table
hi
i have a table with following columns in it
Code: candidate_id, degree, cgpa, institute
Preg_match with an array
is there an away to use preg_match with an array?
i want to check a string with an array to s