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
Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student
array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p
Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g
help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.
What is ha
switch form actions? not working
i want on submit to go to different pages according to the CatID
Code: <?php $CatID=$_
Help With editting and deleting form
Hallo !!
So look at this image :
http://img194.imageshack.us/img194/8272/snapshot5f.pn
New Search Engine
Hey everyone,
I have a ZIP Code Radius search engine already functional. it displays all of t
Displaying image pathname instead of image
Hello
Im trying to upload and then display images from a mysql database - Its only basic and
date function help
i need help with date function
Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD H
Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl