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.





Create Popup Windows When Clicking On A Link.


How to create popup windows when clicking on a link. I have managed to do it using javascript, but as you know search engines have difficuty reading javascript. Also i would like to know how to remove the address bar and file bar from the top of the page when it happens.




View Complete Forum Thread with Replies

Related Forum Messages:
Alert By Clicking On A Link
Is it possible to set a javascript alert before executing a php script when a hyperlink is clicked. i.e. user clicks hyperlink "delete" to execute delete.php?task=del&id=2

View Replies !
Post Value When Clicking On A Link
i have a table each row having a link to another page. What i want is depending on the link that was clicked, to pass to the other page a different value (for example to pass the text of the link). I don't want this value to be visible in the url.

View Replies !
Double Clicking A Link
I own an RPG game, and the problem is that when you go to 'use' an item, say a potion, it works fine, unless you double click it. Say you have 100 potions, you click rapidly on the 'use' link, and it use the item however many times it is clicked, but it will only delete it once. my delete SQL is as follows:

mysql_query("DELETE FROM invinf WHERE username='".$userinf['username']."' AND id='$id' ", $db);

where $id is gotten from:


$id = $_GET['id'];

echo "<br><small><a href="inventory.php?which=1&id=".$retval['id']."&action=eat&item=".$retval['item_name']."&type=".$retval['type']."">[use]</a></small>";

I either need to disable the link once it has been clicked, or make it so it deletes all the items for the amount you click the button.

View Replies !
Is There A Way To Pass A Form By Clicking On A Link
I was wondering if it's possible for me to create a form where the user can submit the form by clicking on a hyperlink instead of clicking on a button to pass the data. Is this possible?

View Replies !
Displaying Data On Clicking Link
I would like to build a FAQ database, for my partners bussiness site, but rather than have a long page, would like to output a list of questions, each as a link. When the link is clicked it then would display the answer beneath this output question. Is there a way to do this using php?

View Replies !
Sorting Members By Clicking Link
I am at a point where I have been able to show all my members that are in my MySQL database... When it displays the list it only shows this info:

FirstName
LastName
State
LastLogin

But it automatically sorts the members by the userId, that's fine for the moment. But how can I make the headings at the top of the list into links that when clicked on sort.

So for example if you click on 'Last Name' it will sort all the members by their last name alphabetically, and if you click it again it reverses the sort... Anyone seen this before or have any idea how to do it?

View Replies !
Browser Window Before Clicking Logout Link?
I have some php scripts to control user access to my intranet site. I use php sessions to track user activities. I must also track the time when the user logs in and when he logs out. Login is straight forward; logout has caused me headaches. If the user clicks on the link to logout everything works ok, but what if he closes the browser window before clicking logout link?
I was wondering if I could have an onclose event on the browser and before actually closing the window I would load a php script to perform the necessary actions. I don't know if that will work and I don't know javascript enough to do that. Can anyone help me to deal with this problem? How did you deal with this problem?

View Replies !
Changing Variables By Clicking Text Link?
I have a page that I need to change variabels with, based on what link you click on the page.

View Replies !
Validate Your Account By Clicking On A Link In The Email
i have a registration page and what  whant to do is make it so users have to validate an account by clicking on a link in the email like you see on most sites.

View Replies !
Excute Or Call A Function My Clicking A Link?
Is there a way to excute or evan call a function my clicking a link? I ask this b/c I see all of these "admin" scripts out there where all you do is click a name and it show you information basied upon that link that you just clicked. I would assume it would be would be some kind of function but i'm not sure.

Basically what I'm looking to do is keep the same page layout but have the content change as they click links, also would like the content to load in specfic places in a page. I really do not want to use an Iframe.

View Replies !
Call A Php Function By Clicking A Link On A Page
What i needed to do was call a php function by clicking a link on a page. Simple right?wrong. Everyone on here says to everyone that it can not be done... when if fact "it can". here is how i did it. Quote:

<a href="?Event=true>

^---html code

and in my php script i had an if statment with this. PHP Code:

if($_POST['Event']==true)Function();

which then went and excuted the Function Function within that script.

View Replies !
'exec' Creates Popup Windows
I'm running php under apache (I'm using the uniserv distribution) on Windows XP. Every time I execute an external command using backticks or exec or system, I get a cmd windows that pops up for the 1/4 second the command executes. This would all be fine, except that I'm deploying the server to run locally on the user's box, and needless to say, the popups are annoying.

I've search everything I'm clever enough to understand and
can't find a way to get the external commands to run in the 'background'. All of the input and output of the commands have been redirected, any shell command causes this behavious, and in all other respects it all seems to work great.

View Replies !
Server Time - Popup Windows
I have an image on the website. When I click on that image a popup windows should open show a message saying "For demo call 123-123-1234" and if the client clicks during the night (9Pm to 7AM) he should get a form which accepts his email address and on submit sends to "abc@abc.com".

View Replies !
Deos Exec() Support A Popup Windows?
I am using exec() to run a .exe file which call another function to popup a new window? It does not work. Anyone know how to make it work?

View Replies !
Redirect On _blank Popup Link
I am creating a service which users can gain access to after clicking an advertisement link (The advertiser knows and agrees that this is OK). My objective is to use PHP to display the code that runs the advert. When a user clicks the advert, it loads in a popup (or pop under), and the main page forwards to a new address where the actual service is. So here's a simple flow diagram:

Load page > Click advert link > Automatically redirected to content...
                       
Also, I will need to incorporate a login script such that the user must log in before moving to the advertiser link page, however I can probably accomplish that with a pre existing script. Could anyone take the time to guide me through the script I would need for the above advertising system to work?

View Replies !
Create Popup Window
i want to send a mail to my user.so in that mail he get some link and when he click the link it should open a small window and display some information.how to do this using php/javascript.i know how to send mail but i dont know how to use javascript in php mail to open a pop window.

View Replies !
Create Popup Window With Product Details
I am attempting to create a popup window using the code that's shown here http://forums.devshed.com/t15928/s.html

I want it to display the product information when a user clicks a link from a table. But, I havent got a clue about where to start. I am displaying an alternate color table from what i assume is a recordset. please excuse my ignorance if this is straight forward as i only just started to attempt anything like this in the last week. PHP Code:

View Replies !
Alternative To Link() Function In Windows
I am using wamp 1.4.5. I want to use 'link()' in windows to create a link of my file and folder. Can any body tell me how to use 'link()' function in php on windows platforms?

View Replies !
Pop Up A New Windows When User Clik Link?
how coding to pop up a new windows when user clik link?

View Replies !
How To Link A New Windows When Users Click The Button.
how to link a new windows when users click the button.

View Replies !
Can't Open A New Fullscreen Popup From Another Popup Window
I can't seem to make a fullscreen popup from a page that is already a fullscreen popup. What I want to do is open another fullscreen popup window from a current fullscreen popup that has the link in it. The link that comes up is http://www.somesite.com/"javascript:void(0);/"

Here is a sample of the code I am working with. Does anyone see anything wrong?

echo '<html>'
echo '<head>'
echo '<script type="text/javascript" src="/uploads/File/Javascripts/new_window_max.js"></script>'
echo '</head>'
echo '<body>'
echo '<a href="javascript:void(0);" onclick="fullScreen('/uploads/File',$row['map'],'');">Map</a><br>'
echo '</body>'
echo '</html>'

View Replies !
Create A Windows Service
how to create a web service in PHP? i have a php script which i want to run as a windows service. Please give me steps on how to create a windows service and ref links. plase give me example if possible.

View Replies !
Create A Link?
If I have a field in my database table that is a link (for example - http://www.phpfreaks.com), is there a way to use PHP to turn that URL into a link when displayed on my php page? I'd prefer not to have to the a href tag and info around the link itself into the database table.

View Replies !
Create A Link
When a user clicks on the link they get prompted with a login. They log in and they get access to a particular webpage on the site. Is this something that can be easily done with PHP?

View Replies !
How To Create A Downloadable Windows Shortcut Using PHP?
Is there a way that I would be able to create a windows shortcut within
PHP? That means that I would have to create a shortcut from plaintext.
Is that possible?

View Replies !
Is There A Php Function That Can Create Folders In Windows Os
i cannot seem to find away of creating a folder using php for example a client could make a folder on the server using php.

View Replies !
Link Two Txt Files Together To Create One
I have two text files. They both have an ID that is the same. One file has an ID and a phone number. The other file has the same ID, a different ID and extra information. What I am trying to do is link one file with the second file to create one file. Problem is I do not know how to do this. I am a beginner at php but any and all help would be great. Code:

View Replies !
Create An Html Link
Is it possible to create an html link for in internal *.html file where $filename.html is posted from a form?

View Replies !
Using A Symbol To Create A Link
I have a text link:

$text = "Hello `TTU will win it all!";

How can I write a script that will look for the ` symbol, search the DB with the team abbreviation, and output a link to the team page?"; I would like the search to read the $text variable and change it to this:

$text = "Hello <a href="team.php?team=TTU">Texas Tech</a> will win it all!";

View Replies !
Create A Mailto-link
I have two tables (news and user) where the field NAME is common in both. In the user-table I also have the field EMAIL. I want to echo NAME from the news-table and create a corresponding mailto-link by using the email-address in the user-table.

View Replies !
Create A Dynamic Link
I need to create an RTF document with PHP. Actually, I am using an already created RTF document which with strings like %var% that I replace with $var before sending the document. I need to create a link like http://www.example.com/id_content=125 but my problem is that in the document produced :

I can read http://www.example.com/id_content=125 But if I click on the link it goes to http://www.example.com/id_content=%id_content%

View Replies !
Need To Create And Make Download Link For Csv
i have an app that i need to be able to publish a link to download a
csv file.
i know that i can use php to make the file, but how to i link to it
through php.
like if i have an html file that has a link in it like this
<a href="somedata.csv">here be data</a>
or would i make that a .php file that would generate a csv ?

the data will come from MySQL.

View Replies !
Create A Link To Delete An Image?
I'm making a really simple cms, but having problem deleting images. I've managed to create a page to upload the images to a folder. I also have a page that shows all the images and file names. Now I'm trying to add a link to delete images, but I can't get it to work. First of all I don't know what to put in the href tag...? Someone said I should create a new page that deletes the image and then redirects you back to the page displaying the images...? Code:

View Replies !
How To Create Dynamic Page From Link
I'm practicing to understand and learn and have the following example. My page displays the state with the pet names under them, like this: Code:

View Replies !
How To Create Symbolic Link Within A Script?
it seems that I have the following issue when trying to create a
symbolic link within a script:

FROM COMMAND LINE: The owner is set to myself. Thus, it works.

FROM WEB PAGE: It doesn't work as expected.

I know that it runs as one user at the command line and a different
user from the web page. Thus, is it possible to do the following
within the script: Code:

View Replies !
Create An Automated Continued Link
PHP Code:

<?php

//here mysql grabs the story.. and assign them properly!

//the function
function Limit_Words($string, $length, $ellipsis = "...")
   {
       $words = explode(' ', $string);
       $curindex = 0;
       $wcount = 0;
       foreach($words as $value){
               $wcount += strlen($value)+1;
if($wcount>$length-strlen($ellipsis)){
               break;
          }

View Replies !
Can Php Create Actual Accounts On Windows 2003 Server
how can I use php to create actual accounts on windows 2003 server(for
handling shared file folder)?

View Replies !
Pg_connect(): Cannot Create New Link. Too Many Open Links (0)
Fedora Core 2, httpd-2.0.54-10.2, php-4.3.10-2.4,
postgresql-7.4.7-3.FC2.1

Using a test.php that includes:

<?php
pg_connect("host=localhost dbname=db_name user=user password=password$");
phpinfo();
?>

I get PHP Warning: pg_connect(): Cannot create new link. Too many open
links (0) in /home/www/mywebsite.com/html/index.php on line 2

I did have a line extension=pgsql.so in /etc/php.ini but have removed
it. I do have /etc/php.d/pgsql.ini that contains the same line. That's
the solution that all responses I've found have suggested. What else
can I try?

View Replies !
Automaticly Create A Link From A Submit Form?
Is it possible to have a form and to take a url submitted from the form and place it on another page page as a link?

View Replies !
How To Read An Uploaded Filename To Create A Link ?
I want to read an uploaded filename, say "mypic.jpg" to create a link to this image without having to ask the users to enter the filename "mypic.jpg" when uploading it. My upload code works file but it's not on the same page. 

I'm working on my "index.php" page and included the upload.php page "<?php include("upload.php"); ?>" in it. Here's the sample of my code in the upload.php page Code:

View Replies !
Read Off An Uploaded File Name To Create A Link?
I want to read an uploaded filename, say "mypic.jpg" to create a link to this image without having to ask the users to enter the filename "mypic.jpg" when uploading it.  My upload code works file but it's not on the same page. 

I'm working on my "index.php" page and included the upload.php page "<?php include("upload.php"); ?>" in it.  Here's the sample of my code in the upload.php page (the code for the form is separate and not included here): Code:

View Replies !
Create A Link In A Table From Echo 'ed Sql Data
im using the following code to output everything in a database table under headings in an html table untill theres no more data left. The headings are things like name address etc.

could i make it so when all the data is shown each name or ID becomes a link and when clicked takes the user to a more detailed page on the selected client.

because of the way the table is generated there is no where to place link tags. is there a more appropriate way that is more editable?

it would be nice to have checkboxes at the edge of each customer also to enable a complete status or deleting a client from the table. Code:

View Replies !
Create A Log Off Button/link To Allow User To Sign Off
Before I start on rebuilding the public area of my current project, I have built an 'admin only' area where all the material for the site is inputted. My question relates to this 'admin only' area which is accessible only via passwords as you would expect.

I am new to PHP/mySQL and was wondering can I create a log off button/link to allow me to sign off and my brother to sign on using the same computer? It's probably quite simple, but no matter how hard I search though the books and on the net, I cannot find a solution?

View Replies !
Create Basic Pages Which Pull Different Ini Documents Per Link.
I'm having some problems with a very basic PHP script. This all was working fine on my test server, but as soon as I moved it, it doesn't seem to be working at all.

I am trying to create basic pages which pull different ini documents per link.

The code I have is:
<?php if (empty($area)) {
$area="home";
}
?>

and where I want the text, I have:
<?php if($area){include("content_includes/$area.inc");
}
?>

It keeps pulling up the home page, evidently it's not reading anything else. The path is correct. I just don't get it.

View Replies !
Create Multimap Link With Database Field Values - How?
I've got a MySql database that stores (amongst other things) a latitude and longitude for a place. I want to create a hotlink on my page listing that links to a multimap.com map for each record.

For example, for 10 Downing Street London, Multimap use the format: PHP Code:

View Replies !
How Do I Create A Link That Runs A MySql Query When Pressed!!
I Want To Create A Link, And When You Press That Link It Runs A MySql Query.

View Replies !
Create A Simple Link Such As <a Href="test.php>Click Here</a>
I create a simple link such as <a href="test.php>Click here</a> as i expect the browser will display the contents of that file. Now i created some simple .php files, which when i click on them i would like to get the download box to download the file, instead of opening it in my web browser.

View Replies !
Only Allowing Popup To Popup Once
I use an OnLoad event in the body tag to open a popup window. I would like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup np longer pops up. I think it is irritating to users to have to close the popup everytime they visit the page. I think I need to set a cookie so that the server knows the visitor is a return visitor and not a new visitor, but I have no idea how to write the code. I do know a little php so I could combine php and javascript if that is the best way to achieve my goal.

View Replies !
Create An Index.php File In The "htdocs" Folder Returns With A Windows Asking Me If I Want To Save Or Run.
I just got this book "SAMS Teach Yourself PHP, MySQL, and
Apache" 1st Edition.

I am follwing the instructions on Appendix A for setting up MySQL,
Apache, and PHP in that order.

After installing the first two, I can bring up the default web page for
Apache. So this works.

After installing PHP and making the changes it suggested. I cannot open
the page anymore. The instructions says to create an index.php file in
the "htdocs" folder. I tried to call it from the browser and it
returns with a windows asking me if I want to save or run.

View Replies !
$PHP_SELF - Create A Link Which Refreshes The Current Page, And Based On Certain Items On The Page
On a page, I want to create a link which refreshes the current page, and based on certain items on the page (simple form objects like radio buttons)the page will load differently. My link looks like this: PHP Code:

View Replies !
Help! ERROR LINK 2005 Raised When Create PHP Extension DLL Using STL In VC++2005!
I created a VC++2005 PHP extension DLL project following the link ...

View Replies !
Url - Create A Link Which Will Call The Page Again But Without The Querystring "?id=1".
I have a problem. For example, the current url of my webpage is

//localhost/learn/page1.php?id=1

I want to create a link which will call the page again but without the querystring "?id=1". I just want "//localhost/learn/page1.php". I have used $_SERVER['PHP_SELF'] but it is not correct. What should I do?

View Replies !

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