Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Tim Streater
On 13 Jan 2012 at 15:05, David Savage dsav...@cytelcom.com wrote: I open the html file up from a windows explorer window (Q:\asterisk\), and so IE opens it up, but the problem lies in the fact that I cannot find apache service running in the background...haven't figured out why yet. The test

Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Curtis Maurand
Make sure IIS is not running. That'll cause all kinds of trouble. Tim Streater wrote: On 13 Jan 2012 at 15:05, David Savage dsav...@cytelcom.com wrote: I open the html file up from a windows explorer window (Q:\asterisk\), and so IE opens it up, but the problem lies in the fact that I

Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Curtis Maurand
Tim Streater wrote: On 13 Jan 2012 at 15:05, David Savage dsav...@cytelcom.com wrote: I open the html file up from a windows explorer window (Q:\asterisk\), and so IE opens it up, but the problem lies in the fact that I cannot find apache service running in the background...haven't

RE: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread David Savage
thanks for your assistance. From: Tim Streater [mailto:t...@clothears.org.uk] Sent: Fri 1/13/2012 9:37 AM To: David Savage Cc: PHP General List Subject: Re: RE: RE: [PHP] passing variables to php script On 13 Jan 2012 at 15:05, David Savage dsav

RE: [PHP] passing variables to php script

2012-01-12 Thread David Savage
to all of you who posted comments for this problem ! I believe it will eventually come together. David From: Ellis Antaya [mailto:ellis.ant...@gmail.com] Sent: Tue 1/10/2012 4:46 PM To: Marco Behnke Cc: php-general@lists.php.net Subject: Re: [PHP] passing

Re: [PHP] passing variables to php script

2012-01-12 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 7:51 PM, David Savage dsav...@cytelcom.com wrote: Installed apache onto a win2K server, and have the html file php file in the same folder (Q:\ASTERISK\) on the Q: drive (which is just another drive in this same server).  I opened the html file using IE 6.0.   What

Re: RE: [PHP] passing variables to php script

2012-01-12 Thread Tim Streater
On 12 Jan 2012 at 18:51, David Savage dsav...@cytelcom.com wrote: Installed apache onto a win2K server, and have the html file php file in the same folder (Q:\ASTERISK\) on the Q: drive (which is just another drive in this same server). I opened the html file using IE 6.0. What I'm

Re: [PHP] passing variables to php script

2012-01-10 Thread Donovan Brooke
David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free, and Directory Assistance calls/titl /head body form action=Q:\ASTERISK\callrecs.php method=post pAccount Number:input type=text name=acctnum/p pYear (4 digit):input

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
Am 10.01.12 21:07, schrieb Donovan Brooke: David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free, and Directory Assistance calls/titl /head body form action=Q:\ASTERISK\callrecs.php method=post Stupid question .

Re: [PHP] passing variables to php script

2012-01-10 Thread Mike Mackintosh
On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke: David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free, and Directory Assistance calls/titl /head body form

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
Am 10.01.12 21:28, schrieb Mike Mackintosh: On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke: David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free, and

Re: [PHP] passing variables to php script

2012-01-10 Thread Ashley Sheridan
On Tue, 2012-01-10 at 21:43 +0100, Marco Behnke wrote: Am 10.01.12 21:28, schrieb Mike Mackintosh: On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke: David Savage wrote: OK...I admit I'm new at thisI have this html file:

Re: [PHP] passing variables to php script

2012-01-10 Thread Matijn Woudt
On Tue, Jan 10, 2012 at 9:57 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2012-01-10 at 21:43 +0100, Marco Behnke wrote: Am 10.01.12 21:28, schrieb Mike Mackintosh: On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke:

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
Am 10.01.12 21:57, schrieb Ashley Sheridan: o simply callrecs.php and see if that works. Q: would be referencing a filesystem path, rather a web address interpreted by a PHP processor. Make sure your .php target is within a PHP supported web space. If a default application is set

Re: [PHP] passing variables to php script

2012-01-10 Thread Ashley Sheridan
On Tue, 2012-01-10 at 22:25 +0100, Marco Behnke wrote: Am 10.01.12 21:57, schrieb Ashley Sheridan: o simply callrecs.php and see if that works. Q: would be referencing a filesystem path, rather a web address interpreted by a PHP processor. Make sure your .php target is

Re: [PHP] passing variables to php script

2012-01-10 Thread Ellis Antaya
it can't work as long as long as there is Q:\ ins his form action +1 David, which web server are you running (apache, iis, ...)? What is your document_root? And last question, where are your html file and your php file(the full file path)? --- Ellis (Sent from my iPod) On 2012-01-10, at

Re: [PHP] passing variables to php script

2012-01-06 Thread Ashley Sheridan
On Fri, 2012-01-06 at 11:53 -0600, David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free, and Directory Assistance calls/titl /head body form action=Q:\ASTERISK\callrecs.php method=post pAccount Number: input

Re: [PHP] Passing Variables to an iframe

2008-09-26 Thread Bastien Koert
On Fri, Sep 26, 2008 at 7:17 AM, Waynn Lue [EMAIL PROTECTED] wrote: This may be more a general HTML question, so let me know if I should post somewhere else. I was hoping to do some logic in a script, and then pass the results of that script to an iframe for more processing. Is it secure

RE: [PHP] Passing Variables to an iframe

2008-09-26 Thread Boyd, Todd M.
-Original Message- From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 6:17 AM To: PHP General list Subject: [PHP] Passing Variables to an iframe This may be more a general HTML question, so let me know if I should post somewhere else. I was hoping to do

RE: [PHP] Passing Variables to an iframe

2008-09-26 Thread Richard Lynch
Anybody can see it and change it. All user input, which always includes GET/POST/COOKIE data is always untrustworthy. -Original Message- From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 6:17 AM To: PHP General list Subject: [PHP] Passing Variables to an

Re: [PHP] Passing Variables to an iframe

2008-09-26 Thread Waynn Lue
Ah, that makes sense. Given all the input on this thread, I'll see if I can get sessions do what I want. Thanks! Waynn

Re: [PHP] Passing variables between pages

2008-09-23 Thread Thodoris
At 11:19 PM +0100 9/21/08, Nathan Rixham wrote: so may as well just have everything in one script then.. You always have the option to write one huge script for any application. But normally in programming, we confront any problem by breaking it down into smaller steps and writing code to

Re: [PHP] Passing variables between pages

2008-09-22 Thread tedd
At 8:39 PM +0100 9/21/08, Stut wrote: On 21 Sep 2008, at 18:13, Nathan Rixham wrote: at it's simplest is this correct..? index.php ?php $variables = $_POST; include 'anotherscript.php'; ? anotherscript.php ?php print_r( $variables ); //include has access to $variables from parent print_r(

Re: [PHP] Passing variables between pages

2008-09-22 Thread tedd
At 6:20 PM -0400 9/21/08, Robert Cummings wrote: Looks like a basic front-end loader pattern. Data isn't passed, it's available by virtue of being in the current request's context. Cheers, Rob. Rob: I don't know what a basic front-end loader pattern is, but the data is available to the next

Re: [PHP] Passing variables between pages

2008-09-22 Thread Nathan Rixham
tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and surely tedd what you say is indeed the best way of achieving this. cheers for taking

Re: [PHP] Passing variables between pages

2008-09-22 Thread tedd
At 11:19 PM +0100 9/21/08, Nathan Rixham wrote: so may as well just have everything in one script then.. You always have the option to write one huge script for any application. But normally in programming, we confront any problem by breaking it down into smaller steps and writing code to

Re: [PHP] Passing variables between pages

2008-09-22 Thread tedd
At 2:47 PM +0100 9/22/08, Nathan Rixham wrote: tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and surely tedd what you say is indeed the

Re: [PHP] Passing variables between pages

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 9:49 AM, tedd [EMAIL PROTECTED] wrote: At 11:19 PM +0100 9/21/08, Nathan Rixham wrote: so may as well just have everything in one script then.. You always have the option to write one huge script for any application. But normally in programming, we confront any

Re: [PHP] Passing variables between pages

2008-09-22 Thread Nathan Rixham
tedd wrote: At 2:47 PM +0100 9/22/08, Nathan Rixham wrote: tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and surely tedd what you say is

Re: [PHP] Passing variables between pages

2008-09-22 Thread Stut
On 22 Sep 2008, at 15:08, tedd wrote: At 2:47 PM +0100 9/22/08, Nathan Rixham wrote: tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and

Re: [PHP] Passing variables between pages

2008-09-22 Thread Jason Pruim
On Sep 22, 2008, at 10:41 AM, Nathan Rixham wrote: tedd wrote: At 2:47 PM +0100 9/22/08, Nathan Rixham wrote: tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates.

Re: [PHP] Passing variables between pages

2008-09-22 Thread Micah Gersten
I would think debugging a chain of code is more of a nightmare than debugging a $_SESSION variable. Also, HTTP is a stateless protocol no matter what you do. If you want to pass data around, the only ways to do it are $_SESSIONS and cookies with $_SESSIONS being preferable as they stay on the

Re: [PHP] Passing variables between pages

2008-09-22 Thread Micah Gersten
You're not passing anything from the browser which is what the OP wanted. You're hard coding variables and the using them in other scripts. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com tedd wrote: I don't know what a basic front-end loader pattern is,

Re: [PHP] Passing variables between pages

2008-09-22 Thread Micah Gersten
Sessions are used to pass dynamic content between pages. Your method is passing static content. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com tedd wrote: No problem. But here is what I would like you to consider, the next time you are thinking about

Re: [PHP] Passing variables between pages

2008-09-22 Thread tedd
At 10:18 AM -0400 9/22/08, Eric Butera wrote: I don't understand what sort of point you're trying to make with this? The original poster asked how to keep state between different pages which in that context did mean separate requests. It seems like you're trying to be confusing on purpose.

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. And that's what you are missing -- it's

Re: [PHP] Passing variables between pages

2008-09-21 Thread Stut
On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every

Re: [PHP] Passing variables between pages

2008-09-21 Thread Robert Cummings
On Sun, 2008-09-21 at 20:39 +0100, Stut wrote: On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2008-09-21 at 20:39 +0100, Stut wrote: On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's

Re: [PHP] Passing variables between pages

2008-09-20 Thread Nathan Rixham
tedd wrote: At 12:42 PM -0400 9/19/08, Dan Joseph wrote: On Fri, Sep 19, 2008 at 12:35 PM, tedd [EMAIL PROTECTED] wrote: At 12:22 PM -0400 9/19/08, Jason Pruim wrote: It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is discussing the differences in storing variables in

Re: [PHP] Passing variables between pages

2008-09-20 Thread tedd
At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. And that's what you are missing -- it's not continued

Re: [PHP] Passing variables between pages

2008-09-19 Thread Dan Joseph
On Fri, Sep 19, 2008 at 10:54 AM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone, Stupid question of the week... A array variable is not being passed between 2 pages. Are my options: #1. Use sessions? #2. Use cookies? #3. Use a hidden form to pass the variable's around? Here's some

Re: [PHP] Passing variables between pages

2008-09-19 Thread Jason Pruim
On Sep 19, 2008, at 11:08 AM, Dan Joseph wrote: On Fri, Sep 19, 2008 at 10:54 AM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone, Stupid question of the week... A array variable is not being passed between 2 pages. Are my options: #1. Use sessions? #2. Use cookies? #3. Use a hidden

Re: [PHP] Passing variables between pages

2008-09-19 Thread Wolf
!-- SNIP -- Main page, login, $_SESSION gets set. !-- SNIP -- What Dan says, Sessions is the way to go with anything where you have logins and need to do more stuff with the person. Easy to set up, easy to handle... Of course, if you want to do it without sessions, you could get the session

Re: [PHP] Passing variables between pages

2008-09-19 Thread Thodoris
Jason Pruim wrote: Hi everyone, Stupid question of the week... A array variable is not being passed between 2 pages. Are my options: #1. Use sessions? #2. Use cookies? #3. Use a hidden form to pass the variable's around? Here's some context... I am working on a timecard system where they

Re: [PHP] Passing variables between pages

2008-09-19 Thread tedd
At 11:15 AM -0400 9/19/08, Jason Pruim wrote: It makes perfect sense... Was just trying to avoid sessions since this application will be limited to about 10 people and restricted to the company intranet :) But the script is still stateless regardless of the number of people or if it's

Re: [PHP] Passing variables between pages

2008-09-19 Thread tedd
At 11:20 AM -0400 9/19/08, Wolf wrote: But why go around your elbow to blow your nose? Wolf Yeah, That's like pounding sand in a gopher hole -- a phrase (one of many) that my wife uses that I have yet to understand. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Passing variables between pages

2008-09-19 Thread Jason Pruim
On Sep 19, 2008, at 12:11 PM, tedd wrote: At 11:15 AM -0400 9/19/08, Jason Pruim wrote: It makes perfect sense... Was just trying to avoid sessions since this application will be limited to about 10 people and restricted to the company intranet :) But the script is still stateless

Re: [PHP] Passing variables between pages

2008-09-19 Thread tedd
At 12:22 PM -0400 9/19/08, Jason Pruim wrote: So if I'm understanding you right... You're suggesting that in my timecard app which has index.php (user login) and timecard.php (Actual time card app) I could simply load index.php and then on submit have it do this: ob_clean;

Re: [PHP] Passing variables between pages

2008-09-19 Thread Dan Joseph
On Fri, Sep 19, 2008 at 12:35 PM, tedd [EMAIL PROTECTED] wrote: At 12:22 PM -0400 9/19/08, Jason Pruim wrote: It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is discussing the differences in storing variables in SESSIONS as compared to storing them in MySQL when using

Re: [PHP] Passing variables between pages

2008-09-19 Thread tedd
At 12:42 PM -0400 9/19/08, Dan Joseph wrote: On Fri, Sep 19, 2008 at 12:35 PM, tedd [EMAIL PROTECTED] wrote: At 12:22 PM -0400 9/19/08, Jason Pruim wrote: It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is discussing the differences in storing variables in SESSIONS as

Re: [PHP] passing variables values using POST

2008-03-18 Thread Stut
On 18 Mar 2008, at 10:43, Sudhakar wrote: i am presently passing the value of a variable to a php file using GET after data has been inserted to the database. ex= $firstname = $_POST[firstname]; if(!$sqlconnection) { echo error message; } else { header(Location:

Re: [PHP] passing variables values using POST

2008-03-18 Thread viraj
On Tue, Mar 18, 2008 at 12:45 PM, Stut [EMAIL PROTECTED] wrote: On 18 Mar 2008, at 10:43, Sudhakar wrote: i am presently passing the value of a variable to a php file using GET after data has been inserted to the database. Why do you need to redirect? Why can't you display the

Re: [PHP] passing variables values using POST

2008-03-18 Thread Jason Pruim
On Mar 18, 2008, at 6:43 AM, Sudhakar wrote: i am presently passing the value of a variable to a php file using GET after data has been inserted to the database. ex= $firstname = $_POST[firstname]; if(!$sqlconnection) { echo error message; } else { header(Location:

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread Richard Lynch
On Fri, August 24, 2007 3:20 am, Goltsios Theodore wrote: Please do not encourage the use of $_REQUEST. You might as well just tell people to enable register_globals again. This is *SO* not correct at all! $_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE); It is *NOT* in any way,

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread Richard Lynch
On Fri, August 24, 2007 6:34 am, Suamya Srivastava wrote: by doing this can i disable the register_globals? You can disable register_globals by using these: $_GET['foo'] $_POST['foo'] $_REQUEST['foo']; $_COOKIES['foo']; $_SESSION['foo']; $_ENV['foo']; $_SERVER['foo']; and never, ever, ever,

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
On 8/26/07, Richard Lynch [EMAIL PROTECTED] wrote: This is *SO* not correct at all! $_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE); Yes and it mimics being lazy - allowing overriding values from $_POST vs. $_GET vs. $_COOKIE depending on what the programmer wants to trust It

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread Richard Lynch
On Sun, August 26, 2007 6:37 pm, mike wrote: On 8/26/07, Richard Lynch [EMAIL PROTECTED] wrote: It is *NOT* in any way, shape, or form, polluting the global namespace of all your variables, which is what register_globals is. That is why I said it was *one* reason register_globals was

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
I'll say it again: regsiter_globals has *NOTHING* to do with $_REQUEST. Zero. Zilch. Nada. Zip. To me it allows for the same [lazy] behavior. Period. I've had other people agree. Say what you want about it. No, it only relies on one Designer who wants their request to look like a FORM

Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/23/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Goltsios Theodore
I think that you can also do that buy making a drop down list with the available databases and pass the chosen database to another (or perhaps the same) script and make the queries and output results there. You can catch the posted or got option buy using the $_REQUEST array ($_GET and

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote: the posted or got option buy using the $_REQUEST array ($_GET and $_POST are included in that like a less lame solution). Let's say you have a Please do not encourage the use of $_REQUEST. You might as well just tell people to enable

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Goltsios Theodore
I thought I just did a comment and suggested that it is a lame solution to use $_REQUEST plus I did not know witch of the two method (POST or GET) would be appropriate so I picked up the lame way :-) . mike wrote: On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote: the posted or got

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Thank you all for the help. I did not want to use dropdown box..that was the very reason i was wondering if I can pass the variables through a hyperlink. I used $_GET and it worked fine. However, as mentioned in the posts its not advisable to use $_REQUEST. Could you please elaborate on the

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Brian Rue
In this case $_POST would be the appropriate array, since your form is using the POST method: form method=post Goltsios Theodore wrote: I thought I just did a comment and suggested that it is a lame solution to use $_REQUEST plus I did not know witch of the two method (POST or GET)

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Hi.. in the settings, session.use_cookies is turned ON but session.trans_sid is turned OFF. do i need to enable this as well? by doing this can i disable the register_globals? - suamya Hi Me again Check on Your setting - ; Whether to use cookies.

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Johan de Wit
Hi Me again Check on Your setting - ; Whether to use cookies. session.use_cookies = 1 session variable is saved here if the user have cookies turned off it will still work if your have trans-sid turn on. BTW you don't have to use a dropdown radio buttons or

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Johan de Wit
Hi I have sessions working like a charm, i use it for my user login vars and so on, here is the settings i used. register_globals = Off session.use_cookies = 1 and switch on session.trans_sid if you know that not all your users will have cookies turned on This worked for me Johan Suamya

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/24/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hi.. in the settings, session.use_cookies is turned ON but session.trans_sid is turned OFF. do i need to enable this as well? by doing this can i disable the register_globals? - suamya You need to make sure session_start() is called on

Re: [PHP] Passing variables

2007-03-23 Thread Tijnema !
On 3/23/07, Chris [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 3/22/07, Jeff [EMAIL PROTECTED] wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble

Re: [PHP] Passing variables

2007-03-23 Thread Richard Lynch
example.com?char_id=43char=Bilbo There is nothing about _ and (int) at all. And, technically, you should use an HTML Entity on the in your HTML output, so it turns into amp; On Wed, March 21, 2007 9:49 pm, Jeff wrote: I want to thank you all for clearing me up on setting the

Re: [PHP] Passing variables

2007-03-22 Thread Tijnema !
On 3/22/07, Jeff [EMAIL PROTECTED] wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my single variable to the next page using.. echo A

Re: [PHP] Passing variables

2007-03-22 Thread itoctopus
Since you're new to this, always be sure to clean up the output you get from $_GET or $_POST to avoid sql injection. Fore example: $search_value = htmlentities($_GET['search_value'], ENT_QUOTES); If you're casting to something other than a string (such as int) than you're safe and you don't have

Re: [PHP] Passing variables

2007-03-22 Thread Travis Doherty
itoctopus wrote: Since you're new to this, always be sure to clean up the output you get from $_GET or $_POST to avoid sql injection. Fore example: $search_value = htmlentities($_GET['search_value'], ENT_QUOTES); If you're casting to something other than a string (such as int) than you're safe

Re: [PHP] Passing variables

2007-03-22 Thread Jochem Maas
although you should be filtering input in order to avoid sql injection cross-site-scripting and other related nasties you shouldn't be using htmlentities() in order to protect against sql injection. filter the incoming data, e.g.: $a = intval($_GET['a']); // you want only integers $a =

Re: [PHP] Passing variables

2007-03-22 Thread Chris
Tijnema ! wrote: On 3/22/07, Jeff [EMAIL PROTECTED] wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my single variable to the next page

RE: [PHP] Passing variables

2007-03-22 Thread Jake McHenry
I was going to say the same thing, but was too busy to worry about it -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 7:14 PM To: Tijnema ! Cc: php-general@lists.php.net Subject: Re: [PHP] Passing variables Tijnema ! wrote: On 3/22/07

Re: [PHP] Passing variables

2007-03-21 Thread Chris
Jeff wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my single variable to the next page using.. echo A

Re: [PHP] Passing variables

2007-03-21 Thread Jeff
Thank you Chris! Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jeff wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing

Re: [PHP] Passing Variables

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 9:14 pm, Jeff wrote: I've read and the wrote back and told me that they use suPHP to parse php files and I have the option of using custom php.ini files. That I could create a .htaccess file or put individual php.ini files in the folder that contains the files im

Re: [PHP] Passing variables.

2006-06-08 Thread Brad Bonkoski
My Humble suggestion is possibly: upon preview, actually post the edited data to a temp table, and then pull the HTML from the temp table to display the preview page. Currently you are passing the original content to the preview page. And You might want to look to see if javascript has any

Re: [PHP] Passing variables.

2006-06-08 Thread tedd
At 4:44 PM +0300 6/8/06, William Stokes wrote: I have a form that a user can use to edit www pages. Page content is stored in DB as a HTML code. First user has to select, from select menu, which page to edit. Then the selected page content html is retrieved to a textarea where it can be edited

Re: [PHP] Passing Variables from Script to Script

2006-04-08 Thread Richard Lynch
PHP has those variables in $argv $argc tells you how many args there were. $argv[0] is the actual script name, eg, myscript.php On Sat, April 8, 2006 2:58 pm, Alan Schneider wrote: What is the best way to pass a variable value from one script to another? In unix or dos all I would need to

Re: [PHP] passing variables with HTTP_GET_VARS

2005-04-02 Thread Burhan Khalid
AndreaD wrote: [ snip ] just say I have a page index.php and that is doing a calucualtion and creating a couple of variables called $age and $height. How so I make these variables globally available and how do all the other pages show/retrieve them?? Andrea: What you are looking for are

RE: [PHP] passing variables between pages without sessions

2005-03-13 Thread Robbert van Andel
With each subsequent page load, have hidden fields that store the values of the previous page's form. There might be another way, but that comes to mind. -Original Message- From: Ross Hulford [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 2:06 PM To: php-general@lists.php.net

RE: [PHP] passing variables between pages without sessions

2005-03-13 Thread R. Van Tassel
Pass the variables through the URL string a href=mypage.php?myvariable=myvalueClick Here/a On the next page echo $myvariable and get myvalue. -Original Message- From: Ross Hulford [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 3:06 PM To: php-general@lists.php.net Subject:

Re: [PHP] Passing variables

2004-04-22 Thread Richard Davey
Hello Dani, Friday, April 23, 2004, 1:14:28 AM, you wrote: D header(Location: ins_02.php?te_es_n_id=$te_es_n_id); D $estabID = $_POST['te_es_n_id']; D What am I doing wrong? If you are using a Header to redirect, the value comes in $_GET, not $_POST. $estabID = $_GET['te_es_n_id']; -- Best

Re: [PHP] passing variables

2004-04-05 Thread William Lovaton
You can use $_REQUEST too, it has $_GET, $_POST and $_COOKIES. -William El s?, 03-04-2004 a las 11:30, Larry E.Ullman escribió: When using a link like xxx.proceed.php?language=gbr the 'proceed.php' script does not receive any $language variable. Does someone know how to get it run?

Re: [PHP] passing variables

2004-04-03 Thread Larry E . Ullman
When using a link like xxx.proceed.php?language=gbr the 'proceed.php' script does not receive any $language variable. Does someone know how to get it run? This is a register_globals issue. Refer to $_GET['language'] instead of just language. Or, at the top of your script, add $language =

Re: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread drisner
On Thu, 1 Apr 2004, Edward Tilley wrote: Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to pass a variable ( $flash = 1 ) back out to my PHP script and can't find any examples of this working after 2 days of looking. I can't get a urldecode to work and I don't want a WDDX

Re: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread Miles Thompson
At 10:44 AM 4/2/2004 -0800, [EMAIL PROTECTED] wrote: On Thu, 1 Apr 2004, Edward Tilley wrote: Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to pass a variable ( $flash = 1 ) back out to my PHP script and can't find any examples of this working after 2 days of looking. I

RE: [PHP] Passing variables from Flash to PHP

2004-04-02 Thread motorpsychkill
PROTECTED] Subject: Re: [PHP] Passing variables from Flash to PHP At 10:44 AM 4/2/2004 -0800, [EMAIL PROTECTED] wrote: On Thu, 1 Apr 2004, Edward Tilley wrote: Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to pass a variable ( $flash = 1 ) back out to my PHP script

RE: [PHP] Passing variables from Flash to PHP

2004-04-01 Thread motorpsychkill
-Original Message- From: Edward Tilley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] Passing variables from Flash to PHP Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to pass a variable ( $flash = 1

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
Hello Chase, Wednesday, February 25, 2004, 5:26:14 AM, you wrote: C None of the variables that are displayed on the result page or C injected into the database are showing in the email that I receive C from the form. C $message = ' C html C body C pThe following information was added to the v5

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
That didn't seem to work Richard... Now this is what my resulting email looks like... Submit Date: $submit_date IP Address: $ip_address Dealer Number: $dealer_number Employee Name: $tester_name Module / Screen Name: $module_name Report: $report Richard Davey [EMAIL PROTECTED] wrote in

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
Problem solved, thanks Richard... ..You had my solution, but I don't know if it was entirely what you said... As it turns out, it makes a difference that my $message variable was enclosed only in single quotes, not double quotes... who knew? Chase [EMAIL PROTECTED] wrote in message news:[EMAIL

RE: [PHP] Passing variables on the url and Macs

2003-11-12 Thread Jay Blanchard
[snip] Does anyone know of a problem on Macs (pre OSX) with passing variables on the URL? For example with the following url: http://someplace.org/file.php?ID=idthingy=thingy only http://someplace.org/file.php actually gets passed. [/snip] What version of PHP? Have you

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread Justin French
On Monday, November 3, 2003, at 12:44 AM, Robb Kerr wrote: I have a two page search. The first page queries a database and creates a list of MANUFACTURERS from which the visitor can select all, one or multiple entries. The page is submitted via GET to the second page of the search. The second

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread David Otton
On Sun, 2 Nov 2003 07:44:29 -0600, you wrote: I have a two page search. The first page queries a database and creates a list of MANUFACTURERS from which the visitor can select all, one or multiple entries. The page is submitted via GET to the second page of the search. The second page uses the

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: form action='nextpage.php?manifacturer=?=$_GET['manufacturer']?' method='get' Unless I'm mistaken (which is possible), this won't work. When the form method is GET, the query string is constructed using the form fields. Therefore, the manufacturer will

  1   2   3   >