PHPBuilder - Where did they go today? Page 3



RSS Twitter
Articles Site Operation

Where did they go today? - Page 3

by: Sebastian Moericke-Kreutz
|
July 30, 2000

When you have set up the database and placed the page right you can use it in different ways:
First, you can use it for standard <a href="redir.php3?u_target=http://www.zet.net"> -commands. Second, you can use it in special forms for easy (and logged ;) navigation. Look at this example:
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>Where did they go today?</title>
</head>
<body>

<form action="redir.php3" method="POST" target="">

<select name="u_target" size="1">
    <option value="http://www.slashdot.org">News for Nerds</option>
       <option value="http://www.phpbuilder.com">News for cool Coders</option>
       <option value="http://www.hotbot.com">If you can't find it there...</option>
       <option value="http://community.zet.net">This is my baby...</option>
</select>
<input type="Submit">
</form>

</body>
</html>
Third: If you fear of getting 'copied' away with all of you links on your site, you can expand the script, so that the parameter '$u_refferer' is looked up in a separate database and replaced by an address. (Like the one in html: 1 is for www.slashdot.org, 2 is for www.phpbuilder.com, and so on)
Finally: Mail me an other ideas you have! Tell me if you want this code expanded with user-id's, symbolic names for links and so on. I will put this script on an own webpage soon and if I have the time, I will enhance it.
Sebastian

« Previous Page
1
|
2
|
3

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Sebastian Moericke-Kreutz

Comment:



Comment:

(Maximum characters: 1200). You have characters left.