Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Identifying A Page Via Hyperlink


I have a page (product_wide.php) that displays sale items. In that page, I "include" a 2nd page that contains hyperlinks to general item categories. The hyperlinks in filternavbar point to product_wide, and display items from the category selected. I need a way, using the same hyperlinks I am using now in filternavbar, to tell, from product_wide, that it was from filternavbar that the link was clicked (as opposed to some other page in the site that takes you to product_wide. I can't change the configuration of the filternavbar url because of duplicate content issues with google.




View Complete Forum Thread with Replies

Related Forum Messages:
HTML Web Page Hyperlink To Php Web Page
I am still having a problem parsing a html page with php. Code in my HTML
is
<? php
echo '<a href="index.php">Home</a><br />
<a href="login.php">Login</a><br />
'
?>
However the link is to the Login page is:
file:///C:/Program%20Files/Apache%20Group/Apache2/htdocs/TeeJayUu/login.php

I am using PHP 5.0.2, Apache 2.0.52, MySQL 4.0.21, and Windows XP SP2. All
pages are in the htdocs folder and the following instructions have been
followed:
- Copy php5apache2.dll to Apache's module dir and rename it to mod_php5.so;
- Copy php5ts.dll to Apache's bin dir.
Finally, add the following line to your httpd.conf file:
LoadModule php5_module modules/mod_php5.so
Apache has been stopped and restarted.
Help - I am lost for what else to do. I want to keep this local until I
have got it working.

View Replies !
Hyperlink And Posting To New Page!
I have a page where I have done a successful query and get search results displayed. Now I would like a link activated so that they can click on the name and go to new page with further details about that company like address hours etc.

View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me.

I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either.

// random_menu.html
<head>
<?php
$i = rand(0,3);
?>
</head>
<body>
<a href = "www.x.com/random.php?i=$i">x</a>
</body>
---------------------------
// random.php
<head>
<?php
$i = $_post["i"];
if ($i = = 0){
$value = "a";
}
else if ($i = = 1){
$value = "b";
}
...etc.
</head>
<body>
<object>
<param name="movie" value="$value">
<embed src="$value"></embed>
</object>
</body>

Please help if you know how to do this.

View Replies !
Hyperlink From Intranet Web Page To Local Files On My Computer
I'm creating a company intranet, and every employee has certain
program we want them to be able to run from it, meaning we want the
link to the program to be on the intranet page. For example, Adobe
Photoshop resides on all the employees computer under "C:Program
FilesAdobePhotoshop 7.0Photoshop.exe"

However, when I enter that as a hyperlink on the page, it does not run
the program.

Is there a way to get a web page to run a program on the local host?

View Replies !
Identifying Browser
Is there a way to identify the brwser a visitor to my site is using?  I would like to include site style based on the visitor's browser.   If their us IE show layout one way, if their using Firefox show it another  way...etc...etc.

View Replies !
Identifying People
on my website i'm finding people are coming back and signing up again and again... how can i log them so i know who has logged in before. was thinking IP but does this not change per session online with dial up?

View Replies !
Identifying A Value Range
i have a form that submits to a php file, the form basically has a hidden field called number:

<input type="hidden" name="number" value="12">

i know how to read the value of that, its simply putting <?php echo $_POST['number']?> but what i want to do is check if the number is between 1 and 25 and if it is then echo A else if it is between 25-75 then echo B else if it is anything above 75 then echo C .

View Replies !
Identifying SSL Clients
I have a site that uses PHP sessions through SSL, my employer does not wish the site to require cookies so I have switched on the use_trans_sid option for users who have cookies disabled. The problem I have is stopping session hijacking.

If I am on a page "https://secure.mysite.com/page.php?PHPSESSID=XXXXX"

And I email the url to someone else they can get onto the site without being challenged for a logon. I am trying to find a way to check that the connection is still coming from the same SSL connection, e.g. by checking the clients public key, but I can't find a way to get any information about the SSL connection from PHP.

View Replies !
Identifying An Image
Ive got a tracking system which tracks how many times a user clicks on an advert on my site. At the moment all the listings are set as one so when a user clicks on that advert it gets one click. However, one of the adverts is now going to contain two images advertising two separate companies.

Ive set it up so the images and urls are different and they go to their own websites and in my tracking table i have just added an extra column called image and the number 1 goes in if image 1 is clicked on or 2 if image 2 is clicked on. However, to display this is the bit im not sure about. At the moment its displayed in a table like this:

Advert Name                Category                      Number of clicks

Advert 1                     Shopping                       257

However, if advert 1 has two images, meaning two separate companies, how can I show this in the above table?

View Replies !
Identifying The Clicked Record
i already know how to load the my list of suppliers using
mysql/php/apache, but what i would like to do now is put a link for
each and every supplier and when someone clicks it, they will
automatically go to that supplier's list of products.

i want something like this:

SUPPLIERS TABLE
supplierID, Name, Address,

AA Alfin21 1506 w. 66th street <>EDIT<>

View Replies !
Identifying Search Engines
my website is pretty much database driven and i've typically parsed the data in PHP and just output flat HTML. however, i'm trying to save some badwidth by spitting out just the critical information, and have javascript parse out the data.

however, i'm kinda worried how search engines would react to this. (especially google) would search engines ignore the keywords if they are inside javascript tags? how do i detect search engines? maybe i can just setup a special script that output's "search-engine-friendly" output.

View Replies !
Identifying The Logged On User
is there a way (in php) to identify the user name used when logging onto a mySQL database? I want to know this so that I can program a basic audit trail on edited records.

View Replies !
Identifying Black Images
I would like to be able to identify completely black images in order that I can exclude them. I am thinking I could use gdlib but I cannot find a suitable function. If I can find the rgb of the image then I can exclude it.

View Replies !
Identifying Individual Users
I know that you can identify users using an ip address. But what if you have several users with different computers in one room sharing the same ip address. Is there anyway to differentiate each individual. Is there a unique signature from the computers that can be used?

View Replies !
Identifying Parts Of A String
$url = /blah/elephant/spaghetti/page.php

This gives you the whole path.

But how can you identify each directory in the url individually?

ie. I want $one to equal 'blah', $two to equal 'elephant' etc.

View Replies !
Identifying Off-site Links
Is there an easy way to identify off-site links using php? For example, on a forum site like phpbuilder.com, I'm looking for code to flag posts that contain: Code:

View Replies !
Identifying Dynamic Form Fields
User goes to page which is a form that asks for some basic info regarding returning products for credit/exchange, and also asks for how many products are going to be returned. Upon submitting, a return authorization form is presented to them with the specified number of product fields. I now want to take the input from this form and email it to myself, as well as, display a confirmation page to the user. The problem I have is a can't say, for instance, echo "$field_name"; because field_name will get created dynamically after the user specifies how many products to return. For example, say the user says 5 products, this will generate a form with field names like:

return_code0 inv_num0 qty0 product0 cre_exch0 stockout0
return_code1 inv_num1 qty1 product1 cre_exch1 stockout1
return_code2 inv_num2 qty2 product2 cre_exch2 stockout2 and so on....

These get created with a for() loop. Once this form is submitted, how can I address the field names? Code:

View Replies !
Identifying If The User Has Placed Invalid Characters
what would the code look like if you wanted to tell the user their info they submitted into a form had invalid characters? would you use ereg?

View Replies !
Identifying Non-Supported Characters In A TTF File With GD?
I've managed to get GD working (mostly anyway) on my site - and am utilising the "imagettftext" function.

I am using this function to display individual characters on my website - with a nominated Font.

However, sometimes the characters in my StringText are not supported by the particular font that I am using ...

Directly from http://www.php.net/manual/en/function.imagettftext.php

imagettftext - "If a character is used in the string which is not supported by the font, a hollow rectangle will replace the character."

Can anyone suggest some code that would:

1) compare/look at the StringText supplied within the "imagettftext" function (in my case the StringText will comprise of a single character only)

2) where the supplied StringText (ie character) is NOT supported by the font, then I need for that character to be reported as not supported. ie. either; return a flag or skip the non-supported character entirely - rather than displaying the standard "hollow rectangle".

View Replies !
Identifying Opening Link For Database Query?
I've got a tricky problem i need to solve, i'm building a banner exchange type site in which there are already about 100 banners so i've had to code things around what already exists to a certain extent.

Now each of the banners that go out on other sites have a link on the banner which pops open a window with details of the banner. this would be fine if all my banners were gifs and jpgs but there are also swf and dcr banners so i have no real control over the actual link on the banner. up until now each banner had a html page made for it so when you clicked on a banner it would open a page banner_1.html which had the details of that banner. for obvious reasons i'm going to replace all these redundant pages and put a htaccess redirect at their url to all redirect to a common page popup.php so all details will be dealt with in one file.

ok this is fine but my problem is in this page popup.php i need to identify the link that just opened the window so that i can then get the info from the database to put on the page..

remember i can't use the url like so...
bannerpage.php?thisbanner=1

but all existing links have unique addresses, is there a way to do this, i'm pretty sure there must be but i can't get my head around it?

View Replies !
Identifying Auto Increment Values For Each Of The Fields
I have set up a database i mysql, identifying auto increment values for each of the fields (eg AdminID). I was wondering how i can set up a form which will, when i go to add a new member, have the autoincrement value already present in the field and i can continue to input the rest of my data as usual.

View Replies !
Identifying User's Pick From Selection List
I have an application that uses PHP to access a MySQL table and
extract rows which match the user's search entry. Data from the
matching rows are loaded into an HTML selection list, and the user can
scan the list and highlight a selected item.

My question: In PHP, what is the syntax for identifying which row is
highlighted?

My goal is to pass the unique row ID of the selected item to a
subsequent form where all the fields will be displayed for the user to
edit.

I already have the code that loads the selection list and the code
that displays the fields. I just need to know how to determine the
highlighted item.

I have two PHP books, and both discuss loading the selection list, but
there is no mention of what to do next.

View Replies !
Form, Type=file And Identifying By Isset()
Windows XP
PHP 4.4.2
Apache 2.2
Register_Globals = Off
Safe_Mode = On
-----------------------
Hi All,

I am having a problem getting a file browse input field to be recognized on the next page. Let me show you...

page1.php Contains a web form with a file input to attach a file using a browse button.

<form method='POST' action='page2.php' enctype='multipart/form-data'>
<input name='uploadFile1' type='file' id=uploadFile1'>

page2.php contains a validator to check the input and perform an action based on whether or not the browse input field has been populated.

// IF THE POST CONTAINS A FILE UPLOAD, PROCESS SECTION 1 IF NOT PROCESS SECTION 2.

if (isset($_POST['uploadFile1'])) {
echo "File is attached so print this.";
}

if (!isset($_POST['uploadFile1'])) {
echo "File is NOT attached so print this.";
}

If the user uses the browse button on the form page to populate the field with a file path to a file on his pc, then I expect to see the "File is attached message". However, regardless of whether someone does or does not browse a file, the message is always that they have NOT browsed a file and the variable "uploadFile1" is effectively left unpopulated.

OUTPUT
File is NOT attached so print this.

Conversley, I thought I might be able to use the _FILES variable instead of _POST, but I get the exact opposite, that the browse field is populated all the time whether or not someone has browsed a file or left the browse field blank.

if (isset($_FILES['uploadFile1'])) {
echo "File is attached so print this.";
}

if (!isset($_FILES['uploadFile1'])) {


OUTPUT

File is attached so print this.

So, I am missing something. Can someone give me some direction so that I can simply identify (with register_globals = Off) whether or not an input field (input type=file) has been populated or left blank? Is this even possible? What am I missing?

View Replies !
Voting System - Identifying Voter And Integrity Of The Vote
I am trying to setup a voting system for our intranet (staff awards - free text fields). I have the database adding the votes no problem. What I would like to do however is the following:

1.  It's our intranet, there is no need for each person to login so it just uses "user/user".  However I need to capture the person's login on the vote record so I can identify who voted.

2.  restrict the users to one vote each.  I have done some research and it looks like I have to create a cookie.

View Replies !
Identifying Different Unicode/utf-8 Types Inside A Text String
I am dealing with a script that reverses a string that is in hebrew, so I can display it properly when I write that string onto an image, however sometimes the string might be half hebrew half english, so I need a way to identify what language is in the string and only reverse the hebrew parts.

in technical terms the hebrew text is encoded in utf-8, and the english text will be encoded in the normal encoding for english, (anscii, latin-swedish whatever, i dont know the name of that encoding)

so the simple question is how do I identify different types of encoding within a string?
that way I can break up the parts that i identify as being utf-8 and reverse only those

(yes I am well aware of methods to display hebrew properly in php, but when writing to an image this is another story, only method i found so far is reversing the hebew text string)

View Replies !
Hyperlink
Im making a select statement and the outputs are in a table but i want the entry of a column to be hyperlink to take to another page Code:

View Replies !
FTP Hyperlink
I want to post FTP hyperlinks to save files from a remote server to a local machine. I tried the following code among other solutions with no luck. Will someone please help or make recommendations? I would like an alert box to pop up providing the ability to save the file in a desired local directory.

function downLoad ()
{
$local_file = 'C: estFTP'
$server_file = 'path/imagejpg;
$conn_id = ftp_connect("ftp Server");
// login with username and password
$login_result = ftp_login($conn_id, "ftp user", "ftp password");
$handle = fopen("file to open", 'w');
// check connection
/*if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $conn_id for user $ftp_user_name";
exit;
} else {
echo "Connected to $ftp_server, for user $ftp_user_name";
if (ftp_get($conn_id, $handle, "file to open (e.g. pdf file, image, etc.)", FTP_BINARY, 0)) {
echo "successfully written to $local_file";
}
// close the FTP stream
ftp_close($conn_id);
}

View Replies !
Using Hyperlink
Example code:

<?php
function myFunction()
{
echo 'The function ran successfully.'
}

echo '<a href="xxxxx">Link to myFunction</a>'

?>

What do I put in place of x? I want the act of clicking the hyperlink to run myFunction().

View Replies !
Displaying A Hyperlink
I pull a string out of MySQL and display it in an html page using PHP. It automatically becomes a hyperlink but if it is a link to a document (www.web.com/test.doc) it won't translate it into a hyperlink. Does anybody know how I might do this?

View Replies !
Hyperlink Query
I have the following line that prints out a record with a link, when you
click the link you get more column
information in the record. I want to add another field (State) so that I can
narrow down the results. How can I pass both the hcounty as I'm doing now,
along with state? to the state7.php file?

print " <td><bgcolor=#000000><font color=#000000 font color=#000000
face=Tahoma size=2 ><A href='state7.php?searchid=$line[hcounty]'><img
src='buttondetail.gif' border=&#390;'></img></td>
";

View Replies !
Replacing Www... With Hyperlink
i want to replace all entries of beginning with 'www.' and
ending with ' ' with a hyperlink to that substring such as:

www.google.com := <a href="www.google.com">www.google.com</>

can anyone tell me the easiest way to do this?

View Replies !
HyperLink Validatation
I am wondering what approach I could used to validate links. I am building a simple portal type index and I would like to be able to check for broken links weekly. The Database already has a field for link status. I would like to create a script that checks for broken links and changes the status so a human can follow up on it.

I am also wondering about how one would “limit” this program. I mean I don’t care if it takes 2 hours just as long as it does run rampant and cause issues with my host. Any thoughts…? I am not looking for a complete solution just a point in the right direction.

View Replies !
URL Text To Hyperlink
here is what i have

   $threadx = preg_replace("/((ht|f)tp://[^s&]+)/", "<a href="$1">$1[/url]", $threadx);
   $threadx = preg_replace("/(S+@S+.w+)/", "<a href="mailto:$1">$1[/url]", $threadx);

can someone tell me how to make it better,
this one completly screws up existing hyperlinks and <img src=""> tags...
need to fix it somehow..

View Replies !
Hyperlink With Parameters
Is this how you print a hyperlink passing parameter action , id, qty to another php script? And printing HTML inside php? I giving three sample code in my program.


I use quotation around HTML TAG and code so can read by php print command.

1. Hyperlink with parameter to pass

print "<a href = "cart.php?action=Add&id=" . $column['SKU'] . "&qty=1">Add Item</a></font></td></tr>";

2. Printing HTML tag with PHP print command

print "<TR><TH>Title</TH><Price</TH><TH>Description</TH><TH>Add Item</TD></TR>";

3. Here I try to print a drop down list with Javascript onChange event. Notice that I use concatenation between HTML TAG and PHP code. I use to respesent quoatation mark.

// print the drop down that will update the qty instantly using Javascript onChange event
// the following syntax will look like this in regular HTML code
// <select name = "$column['SKU']" onChange = "upDateQty(this)"><option
Selected>i</option></select>

print "<tr width = 15% height = 25><td width = 15% height = 25><font face = verdana size = 1 color = black>";
print "<select name = "" . $column['SKU'] . ""onChange = "updateQty(this)"";

for ($i = 0; $i <= 20; $i++)
{
print "<option";
if ($rows['QTY'] == $i)
{
print "SELECTED";
}
print ">" . $i . "</option>";
}
print "</select></font></td>";

View Replies !
Hyperlink In Email
I have a script where I can send an email. However, in the message of the email i want to send a link to a webpage but can't do it cuz i get errors.

I have used <a href </a> but this doesn't work. it just appears as normal text.

$message = "message for the email";
$message .= "antoher message";
$message .= "<a href='testing www.google.co.uk'></a>";

View Replies !
Putting A Hyperlink
I am running a bog standard formail style contact details form. I'm a newbie at php but the scripts I have downloaded seem to work very well. What I wanted to do was include a hyperlink into the php generated 'thanks for submitting your detail' page.

This guide the user to a free audio download that he/she recieves as a thankyou for submitting the details. I have tried to include a hyper link into the code in the normal way but this messes up the php response. Can anybody offer any help or point me at a tutorial. here is the code I'm working on...

echo "<body bgcolor="#AFCDD8" text="#ffffff ext ="arial" link="$link_color" vlink="$vlink_color" alink="$alink_color" $background>cloaked thank you for your submission <a href="jealouskiss.mp3">click here</a> for your free download
";
echo "<br><br>
";

exit;
}

View Replies !
Echo Hyperlink
This has been bugging me for quite a while so wondering if anyone has come accross this type of thing before:

My php:

PHP Code:

onclick="javascript: window.open('current_day.php?day='.$curday.'&month='.$this->activemonth.'&year='.$this->activeyear.'','width=800')">

View Replies !
Display An Hyperlink
In my project,i am getting values from database to my textfield, so after getting values, when i click on a particular value it should open an hyperlink to other frame ,

displaying an html form, is how can i put an hyperlink inside a textfield,languages iam using-- php, javascript& mysql.

View Replies !
Hyperlink For Download
I managed to display the name of files from a folder but am not able to make it display as a hyperlink such that when i click the link i may download it.

<a href="../viraj/project/<?php $filename ?>">Download</a>

It display the project directory but does not directly display the file.

View Replies !
Email Hyperlink
I wish to send an email using PHP codes, sendng email no problem. Please guide me on how can I insert into the email a hyperlink, when clicked on this hyperlink you get your connection on a new page.

View Replies !
Individual Hyperlink
God every step i take forward its different. Again am stuck in thhis news. For eg, I got 5 news in my first page so how do i give individual hyperlink to there respective data.

View Replies !
Disable A Hyperlink
How to disable a hyperlink or a textbox or a command button which is in page 2 from page 1? Suppose i have an admin page and a userpage. i have a details page which holds add,delete,view and search links or buttons or textboxes. i want to access all these from admin page.But i want userpage to access only the search feature of details page.

View Replies !
How Can I Extract Hyperlink Using Dom
how can i extract hyperlink using Dom.

View Replies !
Extract Hyperlink
is there a way to crawl to a web page n extract only the hyperlink?

View Replies !
Add A Hyperlink To Flash
I would like to know how to go about adding a link to a flash banner (swf file) that will users to another website. The flash banners are owned by me. I have would like to do it in php code not javascript or actionscript. Also is there a way to add a hyperlink by editing the swf file and resaving it?

View Replies !
Making A Hyperlink
I want to make the first run through on the for loop a hyperlinked field.

do
{
$myrow = pg_fetch_row($result_set,$rows);
printf("<tr>");
for ($i=0; $i < $count_ch; $i++)
{
printf("<td>");
if($myrow[$i]=='')
{
$myrow[$i]='-'
}
printf($myrow[$i]);
printf("</td>");
}
printf("</tr>");

$rows++;
}
while($rows < $rowsnum);
}

printf("</table>");
?>

View Replies !
Replace A Hyperlink In Php
i have a script that i call like this index.php?language=eng&pageID=12 can anyone tell me how i can use php to echo the URL and replace "eng" with "fr"



View Replies !
Hyperlink Problem
I'm a newbie and have only been doing php and mySQL for almost a month so bear with me. I have been trying to make a hyperlink in my php code from a mySQL table. Let me show you:

echo '<p align="center" style="margin-top: 0; margin-bottom: 0">'.'<br><b><font face="Verdana" size="1" color="#FFFFFF">'.$row['website'].'</font></b>'

Where in the hell do I insert the code to make $row['website'] a hyperlink?

View Replies !
Get Results Into Hyperlink
Eekkk just cant figure it out, always comes back with a blank page

<?php
//Paused Clients Query
parse_str("$QUERY_STRING");
$db = mysql_connect("localhost", "xxxx","xxxxxxx") or die("Could not connect.");
if(!$db) 
die("no db");
if(!mysql_select_db("xxxxxxx",$db))
die("No database selected."); 
$acc1="SELECT * from zipcodes where on_off=2 group by groupe_name";
$acc2=mysql_query($acc1) or die("Could not select paused clients.");
while($acc3=mysql_fetch_array($acc2)) {
echo "<a href="paused.php?'$acc3[groupe_name]'">'$acc3[groupe_name]'</a>"";
}
?>

View Replies !
Hyperlink Click
Basically, I want to have five, fixed (based upon the "sections" of my website set navigation bar at the top, and a navigation bar to individual articles within that section (subsections) on the left hand side. Basically, if you're in, say waffle, the left hand menu then changes to show wafle1, 2 and 3, and if you're in comps,you could get to things like networks, services, and maps, for example. However, I don't know how to "get" the left hand menu to change depending upon which section the user clicks on the top menu. I can envisage that each would be given a number, so the code could look something like this:

if user clicks 1 //home
then show home_menu_list

View Replies !
Dynamic Hyperlink
I am looking forward to making a dynamic link based page, where a particular username is taken from a mysql database and a url is generated which sends that name to a processing php file which will display the profile of that user..how do i send the information in the URL ? i see that its done on forum pages when we say forumdisplay.php?f=2 , im looking for something similar to be implemented, how is the f=2 interpreted ?

View Replies !
Post-like Hyperlink
I need to make a text link (hyperlink) witch call my php script. BUT i need to use POST method. (no variables in url)

i need this look:

<a href="script.php?page=2">next page</a>
.. but this funcionality:
<form action="script.php" method="post">
<input name="page" type="hidden" value="2" />
<input type="submit" value="next page" />
</form>

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved