Search found 9 matches
- Wed Jun 15, 2005 9:44 am
- Forum: PHP - Code
- Topic: PHP or Regular Expression to match word, and echo it
- Replies: 1
- Views: 123
PHP or Regular Expression to match word, and echo it
I am trying to find a way of writing in PHP the following: if $variable is equal to, or begins with "xyz", echo xyz. The variable is defined as: <? $variable = "e;xyz"e;; ?> Some typical examples may be: <? $variable = "Home"; ?> <? $variable = "...
- Wed Jun 15, 2005 4:18 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
- Wed Jun 15, 2005 3:50 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
- Wed Jun 15, 2005 3:36 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
Thanks for that Malcolm. However, first I should clarify that I am not using a database to generate the site. I have a static website with some dynamic functions - using PHP to do the dynamic bits. I specify at the beginning of each page what it is, relative to the information architecture using: <?...
- Wed Jun 15, 2005 2:46 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
- Tue Jun 14, 2005 10:16 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
- Tue Jun 14, 2005 5:47 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
Many thanks. I am trying to implement this code, but am getting an error on line 4: Warning: Wrong datatype for second argument in call to in_array in (web_server_path) /sec_nav_h1.inc.php on line 4 Any ideas what this might be. I am a complete noob to PHP (and programming), so apologies if I am ask...
- Tue Jun 14, 2005 5:22 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
- Tue Jun 14, 2005 5:12 am
- Forum: PHP - Code
- Topic: Insert dynamic H1 tag in web page
- Replies: 14
- Views: 2198
Insert dynamic H1 tag in web page
Hi, I am trying to use a simple PHP script to insert a H1 title on a HTML web page. I am determining the variable ($thisPage) in a script in the HTML web page: <?php $thisPage="Services"; ?> The include would look like this: <?php if ($thisPage=="Services") echo "Services&qu...