php-general Digest 4 Dec 2004 11:16:33 -0000 Issue 3150

Topics (messages 203483 through 203492):

Re: How to Pass Parameters to a CGI
        203483 by: Raditha Dissanayake

Re: SQL sums
        203484 by: Raditha Dissanayake
        203491 by: Marek Kilimajer

Re: "Please wait" page while processing
        203485 by: Tim Owens

Zend Training requirements
        203486 by: Rory Browne
        203487 by: Chris Shiflett

Getting latest Session name
        203488 by: Sagar C Nannapaneni
        203492 by: Marek Kilimajer

variable not being rendered
        203489 by: Dustin Krysak
        203490 by: Jason Wong

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Yao, Minghua wrote:

Hi, everyone,

I want to pass several parameters to a CGI program run on another server. The 
following source of that program shows the parameters that need to be set 
manually.



This is not really a PHP question, you can pass values in the query string eg http://yoursite.com/cgi-bin/what.pl?param1=value1&param2=value2



--
Raditha Dissanayake.
------------------------------------------------------------------
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/ | Drag and Drop Upload

--- End Message ---
--- Begin Message ---
Marek Kilimajer wrote:

Jason Wong wrote:

On Saturday 04 December 2004 00:40, Marek Kilimajer wrote:

Raditha Dissanayake wrote:

Marek Kilimajer wrote:

This is an SQL question.


Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list moderators who will jump on you like what happened to me last week.
I was accused of being not helpfull.


Ok, I appologize :)))



I think Raditha had his tongue firmly in his cheek when he wrote that.

Does anyone know of a good remedy for cheek pain? (or is that an off topic question?)


So did I ;-)



--
Raditha Dissanayake.
------------------------------------------------------------------
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/ | Drag and Drop Upload

--- End Message ---
--- Begin Message --- Raditha Dissanayake wrote:
Marek Kilimajer wrote:

Jason Wong wrote:

On Saturday 04 December 2004 00:40, Marek Kilimajer wrote:

Raditha Dissanayake wrote:

Marek Kilimajer wrote:

This is an SQL question.



Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list moderators who will jump on you like what happened to me last week.
I was accused of being not helpfull.



Ok, I appologize :)))




I think Raditha had his tongue firmly in his cheek when he wrote that.

Does anyone know of a good remedy for cheek pain? (or is that an off topic question?)

I did not find any cheek-pain-remedy list, so I think it's fine to ask here. I'll ask the moderators to add it to the subjects as number ... integer overflow.


:-D
--- End Message ---
--- Begin Message ---
I used a little javascript to reveal a message, then submit the form.
Hence the message stays there until the next page loads:

<SCRIPT LANGUAGE="JavaScript">
<!-- 

function checkFields(fieldNames, displayText) {

        //etc...

        if(ok)
                document.all.please_wait.innerHTML="Storing data -
please wait";
        return ok
}
-->
</SCRIPT>

...
<input type="image"  onclick=" return checkFields()"
src="images/next_button.gif" name="next" border="0" value="submit"
alt="Next">

<span id="please_wait"></span>


Not that it's PHP, but it works...

Tim Owens

-----Original Message-----
From: Geoff Caplan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 December 2004 7:52 a.m.
To: [EMAIL PROTECTED]
Subject: "Please wait" page while processing

Hi folks -

I'm writing a checkout.

When user submits their card details, I want to redirect
them to page with a "please wait" message. Then redirect to
the script that does the payment processing. Then when I
have the response from the gateway, redirect again to the
result page.

form -> message -> processor -> result_page

I've seen this done but I can't figure out how.

The browser (IE) simply shows the initial card details form
until the processing is complete, then shows the final
result page. I can't get it to show the message page in the
middle.

Any suggestions would be welcome!

------------------ 
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154 

--- End Message ---
--- Begin Message ---
Hi
I was looking at Zend training requirements, on Zends website.

They reportedly require Win2k/XP, and IE>5.5.

Does anyone know what specific part of these training courses require
Win2k/xp and IE, and whether or not it is possible to bypass this
using Wine(or if it is due to a wma dep, using mozilla/mplayer)? I was
discussing this with a collegue on the Irish  Linux Users Group, and
neither of us can meet the Windows Requirement, with me, running
various flavours of (GNU/)Linux only, and he running Linux, and
MacOSX, only.

I personally hyphothised that this may be a support issue, that
Linux/Mac would work, but that the support staff didn't know how to
use them? Is this possible? It seems strange that training for the use
of Free/Open Source Software would require win2k/xp.

Regards
Rory

PS I filled in Zends "contact us" form, but haven't heard back from them yet.

--- End Message ---
--- Begin Message ---
--- Rory Browne <[EMAIL PROTECTED]> wrote:
> I was looking at Zend training requirements, on Zends website.
> 
> They reportedly require Win2k/XP, and IE>5.5.
> 
> Does anyone know what specific part of these training courses
> require Win2k/xp and IE, and whether or not it is possible to
> bypass this using Wine(or if it is due to a wma dep, using
> mozilla/mplayer)?

The software used for the virtual classroom requires Windows, and clicking
a link in IE is required to join the class (it doesn't work if you click
the link in Firefox). It's a proprietary application - not any standard
audio or video like you might be thinking.

I have a separate Windows partition that I use 3 hours each month for this
purpose (soon to be 6 hours a month, since I'm going to add a class in
January). It's definitely something I wish would change, but that's not
really my decision. I hate to think that people are excluded because of
the platform, but I know that happens, especially since a majority of
professional developers seem to use Linux and Mac OS X as much or more
than Windows. Installing Windows to teach a security course seemed rather
odd, believe me. :-)

If you can spare a partition or have a friend with a Windows PC, I really
do think it's a good deal for $99 a class. This virtual training isn't as
good as the real deal (in person), but it's much better than I expected,
and it's so darn cheap.

> I was discussing this with a collegue on the Irish Linux Users
> Group, and neither of us can meet the Windows Requirement, with
> me, running various flavours of (GNU/)Linux only, and he running
> Linux, and MacOSX, only.

I have personally tried Virtual PC on Mac OS X with this software, and it
works fine for listening. I can't use it to teach, because my voice is too
choppy with the emulation, but it should work fine for taking a class.
I've never personally tried wine, but I know someone who has, and it has
the same issues - you just can't talk. There is a way to send an IM to the
intructor during class, and most people use this anyway, so it might not
be an issue.

> It seems strange that training for the use of Free/Open Source
> Software would require win2k/xp.

Yes, I agree. If you can manage to work around this hassle, I think you'll
find the training to be worth it. I hope so. :-)

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly     HTTP Developer's Handbook - Sams
Coming February 2005        http://httphandbook.org/

--- End Message ---
--- Begin Message ---
Hello friends,

I just wanna know is there any way out to know the name of the latest
created session. The issue i'm fixed up with is....

I'm storing some variables in the session and the session expire is set
to some 24hrs. Now when i close the browser and when i again open the
same page after some time i need to get the same variables that i stored 
in my previous login. Is that possible???

/sagar

--- End Message ---
--- Begin Message --- Sagar C Nannapaneni wrote:
Hello friends,

I just wanna know is there any way out to know the name of the latest
created session. The issue i'm fixed up with is....

I'm storing some variables in the session and the session expire is set
to some 24hrs. Now when i close the browser and when i again open the
same page after some time i need to get the same variables that i stored in my previous login. Is that possible???

The session cookie is set to expire when the browser is closed by default. So you need to use session_set_cookie_params() function to set the cookie to expire after 24 hours.


But be aware of the security implications this have. If a user does not log out and just closes the browser, anyone coming to the computer after him might get into his account.
--- End Message ---
--- Begin Message --- Hi there, I have some code where I am using the $_SERVER['PHP_SELF'] array to reference my script for a form action... now for some reason the file name is not being rendered out. I am including only small snippets of my code to see where my error is...

<?php

$editFormAction = $_SERVER['PHP_SELF'];

print "<form action=\"".$editFormAction."\" method=\"post\" name=\"ml_form\" id=\"ml_form\">\n";

?>

Now there is much more code, but these are the important points. All I am doing is assigning a variable a value from the $_SERVER array. Then print out a form with PHP, and reference that variable for my form action.... the HTML is rendered as normal. But the form action page is not there when I view my source. I am sure it is a SIMPLE error... But my brain block is getting larger the more i look at this.


help cries the newbie!


d

--- End Message ---
--- Begin Message ---
On Saturday 04 December 2004 15:36, Dustin Krysak wrote:
> Hi there, I have some code where I am using the $_SERVER['PHP_SELF']
> array to reference my script for a form action... now for some reason
> the file name is not being rendered out. I am including only small
> snippets of my code to see where my error is...

I know this is not your actual code, but did you actually run this? I can't 
see any errors in it and it should work fine if you're using a recent version 
of PHP.

> <?php
>
> $editFormAction = $_SERVER['PHP_SELF'];

What does print_r($_SERVER) show?
What does print $editFormAction show?

> print "<form action=\"".$editFormAction."\" method=\"post\"
> name=\"ml_form\" id=\"ml_form\">\n";

As you're not placing variables inside your print statement you might as well 
use single-quotes:

print '<form action="'.$editFormAction.'" method="post" 
name="ml_form" id="ml_form">'."\n";

This does away with all the backslashes (which gives me a headache).

But if you're going to be using double-quotes then there's no reason to break 
out of it:

> print "<form action=\"".$editFormAction."\" method=\"post\"
                         ^^^^^^^^^^^^^^^^^

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
BOFH Excuse #235:

The new frame relay network hasn't bedded down the software loop transmitter 
yet.
*/

--- End Message ---

Reply via email to