Re: [PHP] one click - two actions?



Thank you for your reply. I think my question is really much more simple than what you are suggesting.
If you have a quick look at
http://www.squareinch.net/single_page.php?art=crp_logo.jpg
you will see what I mean.
I have a single page and both results load in the same page.

When I click on a link the picture loads on the left side and the info should load on the right side.
Right now the info is visible at all times regardless of what I click on!
I need to know how to join my echo statements and/or my query!

On Nov 13, 2006, at 12:57 PM, Warren Vail wrote:


Mel, that may have been a disguised hint. Your answer lies in
javascript. The first php page needs to contain javascript to open a
second page with the URL to the second php script when the first page
loads.

Keep a couple of things in mind, popup blockers will reek havoc if you
can't get visitors to your site to stop blocking popups and if you
expect both URLs to receive form contents, you will have to make
arrangements for that in the javascript in your first page, since it
will need to pass the data again.

Check out http://www.hotscripts.com for some links to sites with the
necessary javascript.

Hope this helps,

Warren Vail

-----Original Message-----
From: Mel [mailto:melinem@xxxxxxxxxxxxx]
Sent: Monday, November 13, 2006 12:32 PM
To: John Meyer
Cc: PHP General List
Subject: Re: [PHP] one click - two actions?

I really don't know?

My site is all php and ready to go live except for this little problem.

I would really appreciate some help.

On Nov 13, 2006, at 4:12 AM, John Meyer wrote:

Not to be rude or anything, but if you want to do two things with one
click, wouldn't the javascript list be the place you would want to go?


.



Relevant Pages

  • Re: Scope of php variables outside blocks
    ... javascript UpdateMyMap() is called on the clients side repeatedly. ... All of your PHP code will be executed on the server, ... Each time you load the page you start fresh. ...
    (comp.lang.php)
  • RE: [PHP] one click - two actions?
    ... Technically when php prepares the page, ... you used frames you could cause the left frame to be a separate PHP ... I have a single page and both results load in the same page. ... The first php page needs to contain javascript to open a ...
    (php.general)
  • Re: Lots of 2s
    ... [PHP] ... my skin crawl *even more* than JavaScript. ... but with a load of stuff that lets you ...
    (uk.misc)
  • Re: How to pull existing Title tag into the body of the document as text only
    ... >the body of the html page. ... We started coding this with php, ... >and really bogging down the system and the pages load very slowly. ... >To fix this we decided to just use javascript, ...
    (alt.php)
  • RE: [PHP] one click - two actions?
    ... Your answer lies in ... The first php page needs to contain javascript to open a ... second page with the URL to the second php script when the first page ... Keep a couple of things in mind, popup blockers will reek havoc if you ...
    (php.general)