Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-03-2005, 04:18 PM Simple URL passing
Junior Talker

Posts: 1
Trades: 0
I'm new at php, and trying to pass a url string, as well as a couple other things onto my page.

Here is the code I'm using:
<?php
define("LINK1", "Tuna Tacos!");
define("LINK_URL1", "http://www.tunataco.org?ref=1234");
define("LINK2", "Check This Out!");
define("LINK_URL2", "http://www.superaffiliatesite.net?id=me");
define("BANNER1", "images/hostingbanner.gif");
define("BANNER_URL1", "http://www.hostingaffiliate.com?ref=666");
define("BANNER2", "images/webdesignbanner.jpg");
define("BANNER_URL2", "http://www.webdesignsuperstar.com?ref=steve");
?>

I have this code in an external php file located here:
http://www.locate-contractor.com/mas...obal-links.php

Here is the page I want to insert the above links:
http://www.locate-contractor.com/index.php
At the top of the page I include the global-links.php file. Then towards the bottom, you can see a LINK1 which should be pulling "Tuna Tacos" and the Url, although it doesnt seem to do that. What am I doing wrong?
tetuanrp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-04-2005, 12:26 AM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
<?php
$l1Text = 'Tuna Tacos!';
$l1url = 'http://www.tunataco.org?ref=1234';
$l2Text = 'Check This Out!';
$l2url = 'http://www.superaffiliatesite.net?id=me';
$b1loc = 'images/hostingbanner.gif';
$b1url = 'http://www.hostingaffiliate.com?ref=666';
$b2loc = 'images/webdesignbanner.jpg';
$b2url = 'http://www.webdesignsuperstar.com?ref=steve';
?>

save as ''global_links.php"

in each file you want 'em, at top;

include('global_links.php');

call em up with e.g;

<a href="<?php echo $b1url ; ?>"><img src="<?php echo $b1loc ;?>" /></a>
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 04-05-2005, 06:55 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
have a look for Snoopy.class.php

ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Simple URL passing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37162 seconds with 12 queries