JohnBear, your solution would work. I have actually found a different approach that works too. Here it is:
Page1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript"...
I have a page, Page1.htm containing a form with a textfield, and a link which pops up another page, Page2.htm. Page2.htm contains an iframe.
When I press the link on Page1 to popup Page2, I would like to pass the text in the textfield on Page1 to the iframe on Page2.
Finally I would like to...
I have tested the following:
www.phpcodelock.com has a program to encrypt both PHP, HTML and Javascript for $50. It works by including a .php file in the home directory. You can distribute as many encrypted php files as you like. You don't need to make
any modifications to PHP.ini. You...
I am looking for a way to distribute a CMS system that I developed using PHP without giving away the source code. Is it possible to distribute a DLL or binary, like you would do with an application written in C for example? Or is there some other way I can do it. I know PHP is a scripting...
I want to force a download of a .txt file without IE opening it in the browser. I just need the download window to appear. How do I do it?
currently I am using (which opens the text file in the browser):
header("Content-type: text/plain");
header("Content-Disposition: inline...
if (!ereg("([0-9]{9})\(xml)|(txt))","123457890.txt")) echo "error!";
What's wrong with this regular expression? I need one that will check a filename has 9 numeric digits and a .txt or .xml extension.
The one above should echo the error since it's 10 digits long...
I'm looking for a way to do http file upload and post file information to the database at the same time. Basically I have a form that has a browse button to allow the user to choose a file, and then some textfields where the user will be entering information about the file, for example a short...
I want to add backround music to a site I am developing, in such a way that it continues when the visitor moves to a new page. Currently the music stops and restarts when the visitor goes to a new page. The site is programmed in PHP and music comes out of an embeded Flash file. You can visit it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.