![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2007
Location: Taylor, TX
Posts: 18
Rep Power: 0
![]() |
2nd level includes
I am having a strange issue, and perhaps it's a coding error, or perhaps not.
I am working on a site, where the content of each page is called in an "include" All of my stuff is done this way because the site is a module with a specific purpouse and the content itself doesn't need to be exhaustive, just explanitory. I have a couple of forms I am working with and portions of the form coding are reused throughout the site. Anyway, here's where I am going. Example: Visible page is called facilities.php facilities.php echos $frmcrtsrch from pages.php $frmcrtsrch in pages.php has to also be able to echo $frmstate from states.php So far, none of this is database stuff at this point, it's just echoing static information. I consider myself quite good (not a pro, but fairly good) with PHP, but, I am stuck as to why this isn't working. the $frmstate is just a select/option box with the states of the USA to be selected in this particular form. So, it is being called up within the rest of the form. Basically, I am using an include within an include, and logically, it should work. I have tride the syntax for all of this in several ways but I either come up with syntax errors, or, the form just prints the word $frmstate where the selection box should be. Any help on this one? Thanks Sage
__________________
I reject your reality and substitute my own. If you aren't learning, you aren't living. www.an8search.com |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Have you considered posting your code, or shall we just pluck stuff out of our nether regions according to how we interpret your unclear post? Be sure to read the sticky "How to Post" thread.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| do you prefer high level or low level? | ShadowAssasin | Coder's Corner Lounge | 3 | Jun 13th, 2006 12:45 PM |
| A level | Oddball | C++ | 20 | Feb 8th, 2006 6:52 AM |
| how to display a binary-tree vertically? | sinix | C | 17 | Nov 12th, 2005 6:07 PM |
| Question about level rendering | gardon | C++ | 6 | Feb 14th, 2005 12:46 PM |
| PHP Includes? | scorpiosage | PHP | 5 | Feb 4th, 2005 2:46 AM |