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
$_FILES array
Ok,
I just started experimenting with PHP today. My goal right now is to have people be able
HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen
Changing files over
Just thought I'd start with the new forums looking really nice .
Ok basically I've made this
Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav
please help me in this update statment
hi every one
if I have table and this data in it
id name
10
database design
Hi,
I got a page which allow candidate to type in their previous working experience,
I let
utf8_general_ci error ??
I have all kinds of data to be inserted in database table
//I am getting this error
Yo
Grouping and sorting results
Please help with this query.
I have 2 tables in a database, countires and cities. states look
Specific name typed, specific image shown on html page
Hello,
Fairly new to PHP and was curious if someone might know how to solve a fairly simple r
JQuery, Masterpage, and Control issue
Hey everyone, I am using JQuery in several sites so I thought it would be best to place the library