Jump to content

goocharlton

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by goocharlton

  1. I have my site index.php page with this code: <?php $page_name = 'News'; $page_ID = 'news'; $heading = 'News'; $content = include ('news_items.php'); include ('template.php'); ?> When I run index.php the code runs through the list of variables then it runs the include ('template.php'); (this is the page that runs the site template, it asks for the variables above). My problem is when index.php is run the $content variable's output displays before the include ('template.php'); is displayed but it is meant to run the include ('template.php'); and then call $content into the template. What am I doing wrong?
  2. Thanks for your quick responses especially sasa, I used some of your idea your idea. I need the code in this..... <?php if (${'left_column_' . $page_name} == 0) ?> ....way because the 'if' function is in a template and the '$page_name' is at the top of that template page(which will have to be changes according to every page) but the '$left_column_Home' is in a separate site configuration file. I call that with include_once
  3. I am referring to this snippet of code: <?php if ('$left_column_' . $page_name == 0) echo ""; else include_once ("left_column.php"); ?> The problem I am having is in the second line of this code if ('$left_column_' . $page_name == 0) . I am trying to check if $left... has a 0 or not but I dont know how to include the $page_name variable inside the other variable. For example this is the complete code that I need to be functional: <?php $page_name = "Home"; $left_column_Home = "1"; if ('$left_column_' . $page_name == 0) echo ""; else include_once ("left_column.php"); ?>
  4. i got that attachment form working, it sends e a file but it is a .dat file, i cant read it.
  5. Thanks but that only add the data bot the pics. Does someone know of a way of submitting the form to my email address but then the pics are sent to my email address as an attachment.
  6. Hi all, I am looking for a PHP script that will process a form with numerous text boxes and a file upload part, then it sends it to my email. For example i want it to submit this form. [a href=\"http://home.exetel.com.au/anne_durie/MTBtrail.net/AddTrack.htm\" target=\"_blank\"]http://home.exetel.com.au/anne_durie/MTBtr...et/AddTrack.htm[/a] If any one can help it would be greatly appreciated. Cheers Charlton
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.