Help: Text Script

CoyoteAssassin

Elite Member
Joined
Jan 3, 2010
Messages
1,868
Reaction score
3,405
All:

I'm about to create 200+ event registrations and the last thing I want is to later have a notice that I need to include on each event and have to go back and edit each one.

My thought is to insert a PHP tag into the event and call for the text in a indicated text file. For the time being, nothing will show, but if all of the sudden, I need to let every one know that they can save $50 if they enter code SAVE50, I want to enter that into the .txt file which is called by the PHP script which has already been included on each page.

I know this is possible but I can not find the tag.

Any help will be appreciated.

Thanks.
 
Search for php include

Basic include:
Code:
http://www.w3schools.com/php/php_includes.asp

And with vars:
Code:
http://php.net/manual/en/function.include.php
 
And if you need to use conditions

Code:
<?php
if ($a > $b) {
    echo "a is bigger than b";
} elseif ($a == $b) {
    echo "a is equal to b";
} else {
    echo "a is smaller than b";
}
?>
 
My pages is .jsp. Do you think this will work or do I need something else?
 
http://java.sun.com/products/jsp/syntax/1.2/syntaxref1214.html

Not a huge fan of JSP, but that should do the trick. The above php stuff won't work.
 
Thanks guys. I'll give it a try. It someone else comes along and finds something better, post it and let me know.

Thanks.
 
Back
Top