[PHP] PHP variables via SSL on IE5.x

2004-09-29 Thread Merlin
Hi there, I am having trouble with posting a form to a php script through SSL on IE prior 5.5 sp1. It works like a charm on all other browsers. In IE it works without SSL, but when SSL is enabled, the browser pops up with a message that he is switching to an unsecure site and then all then

[PHP] how to concatenate php variables in mysql query

2004-09-22 Thread luke
hi, i'm trying to concatenate two php variables (containing form data) in a mysql query. i'm currenty using the dot operator: telphone number =$telcode.$telnumber' but only the telcode gets written to the database. any ideas? many thanks, luke m. -- PHP General Mailing List (http

RE: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Jay Blanchard
[snip] telphone number =$telcode.$telnumber' but only the telcode gets written to the database. [/snip] There is not enough here to know for sure (I am betting this is part of a query), but if your code looks like the above you are missing a single quote after the =. Now, if you enclose the

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread luke
here is the whole query: $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2', address_3='$address3',

RE: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Jay Blanchard
[snip] telephone_number='$telcode.$telnumber', only the telcode gets inserted. [/snip] Concat them before placing into the query...(have you echo'd $telnumber to make sure it is not empty?) $wholeTelNumber = $telcode . $telnumber; echo $wholeTelNumber; telephone_number='$wholeTelNumber', --

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Daniel Kullik
[EMAIL PROTECTED] wrote: here is the whole query: $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2',

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread John Holmes
From: [EMAIL PROTECTED] $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2', address_3='$address3',

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Daniel Kullik
Daniel Kullik wrote: [EMAIL PROTECTED] wrote: here is the whole query: $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company',

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: here is the whole query: $query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2',

RE: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Yoed Anis
. Yoed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 7:47 AM To: Jay Blanchard; [EMAIL PROTECTED] Subject: Re: [PHP] how to concatenate php variables in mysql query here is the whole query: $query = INSERT INTO inmarsat_comp

Re: [PHP] Variables not passed to next page

2004-08-02 Thread Jason Wong
On Sunday 01 August 2004 02:28, Andre Dubuc wrote: Yes the first page has the appropriate form tags: {edit-news.php] form action=edit-news-x.php method=post . . . /form Good. The second and third pages [edit-news-x.php/ edit-submit.php] are pure php (a pass-through page) -- I wasn't aware

[PHP] Variables not passed to next page

2004-07-31 Thread Andre Dubuc
Hi, I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code: [edit-news] ?php session_start(); ob_start(); ? $news = A few paragraphs; print input type='text'

Re: [PHP] Variables not passed to next page

2004-07-31 Thread Jason Wong
On Sunday 01 August 2004 01:40, Andre Dubuc wrote: I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code: [edit-news] ?php session_start(); ob_start(); ?

Re: [PHP] Variables not passed to next page

2004-07-31 Thread Andre Dubuc
On Saturday 31 July 2004 02:12 pm, Jason Wong wrote: On Sunday 01 August 2004 01:40, Andre Dubuc wrote: I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code:

Re: [PHP] Variables Help

2004-05-14 Thread John Nichel
Ford, Mike [LSS] wrote: On 13 May 2004 19:52, John Nichel wrote: Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: Steve Douville [EMAIL PROTECTED] ? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that

[PHP] Variables Help

2004-05-13 Thread Steve Douville
? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. TIA

Re: [PHP] Variables Help

2004-05-13 Thread Adrian
$GLOBALS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread Richard Davey
Hello Steve, Thursday, May 13, 2004, 6:19:07 PM, you wrote: SD Is there a variable that I can call that will return an array with any SD variables I have set? I'd want to call it and then parse and display current SD values of, in this case, a and b. Hope that makes sense. get_defined_vars();

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: From: Steve Douville [EMAIL PROTECTED] ? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like

Re: [PHP] Variables Help

2004-05-13 Thread Monty
Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that Returns an array of all defined variables??

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty Why not just unset

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: Monty [EMAIL PROTECTED] Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that Returns an array of all defined

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: ?php $starting_vars = get_defined_vars(); //bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... This cat is skinned. :) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
?php $starting_vars = get_defined_vars(); //bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... Oh I like that... wish I would have suggested that one! -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Variables Help

2004-05-13 Thread Ford, Mike [LSS]
On 13 May 2004 19:52, John Nichel wrote: Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of

[PHP] Variables inside a function

2004-03-08 Thread Nathan Croker
I am relatively new to PHP. But something I can't seem to make work is when I call one of the functions I have made and a variable is set inside that function eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } I then echo $blah; somewhere else in the script but nothing is echo'd. How

RE: [PHP] Variables inside a function

2004-03-08 Thread Jay Blanchard
[snip] eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } [/snip] function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; return $blah; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
Don't you need to set a return? Return $blah; At the bottom of your function block. alex hogan -Original Message- From: Nathan Croker [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 6:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variables inside a function I am

Re: [PHP] Variables inside a function

2004-03-08 Thread Jason Wong
On Tuesday 09 March 2004 01:44, Alex Hogan wrote: Don't you need to set a return? Return $blah; At the bottom of your function block. That does not make the variable $blah available elsewhere in the program. The OP should take a look at manual Variables Variable scope. -- Jason Wong -

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
I can return the favor sometime. alex hogan -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables inside a function On Tuesday 09 March 2004 01:44, Alex Hogan wrote: Don't you need

RE: [PHP] Variables inside a function

2004-03-08 Thread Jay Blanchard
[snip] I then echo $blah; somewhere else in the script but nothing is echo'd. How do I make it so that I can use $blah anywhere in the script? [/snip] I went back and re-read the post, and his question above is the important one First you must return something from the function, then you

Re: [PHP] Variables inside a function

2004-03-08 Thread Jason Wong
On Tuesday 09 March 2004 02:03, Alex Hogan wrote: If I read his post correctly he was looking to make blah() available and not $blah. The OP says so that I can use $blah anywhere in the script?, which to me means that $blah needs to be global ... [snip] Of course obviously being one of the

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
My mistake. Good one on the spelling I can't believe I missed that one alex hogan -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables inside a function On Tuesday 09

[PHP] Variables not passing...

2004-03-04 Thread Chase
Okay, I am sure this will be painfully simple, but I have looked it over for a couple of hours now, and I am obviously missing something. I am trying to get a start date and a stop date via input from a user to use as variables in a MySQL query, but for some reason, I can't get the variable to

Re: [PHP] Variables not passing...

2004-03-04 Thread daniel
Is there a session_start() on the second page ? Also i didnt know u could set an action to a jscript popup, it may not be posting to the second page. What you could try is posting to the second page like a normal post, u need to do something like session_start(); $_SESSION['startdate'] =

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
Thank you! It looks like it was a combination of my NOT using the $_POST and the fact that my JScript wasn't allowing the variables to pass... WHO KNEW?!? THANKS!!! Chase [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a session_start() on the second page ? Also i didnt

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
One other irritation for the evening... The MySQL query that I am trying to create needs to use the date the user enters and then add @ 12:01am EST to it so it will acutally match the data in the table. Below is my quesry line, but I don't know how to add that chunk to each of the variables...

[PHP] variables

2004-02-19 Thread Dominique ANOKRE
hello, how can i put the character \ in a variable ? I've done the code below but errors occurs : $barre_oblique = \; Parse error: parse error, unexpected T_STRING Please help

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Escape it. $string = \\; Or, use single quotes: $string = '\'; On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: hello, how can i put the character \ in a variable ? I've done the code below but errors occurs : $barre_oblique = \; Parse error: parse error, unexpected

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Whoops, mistyped on my reply, you need to escape it with the single quotes to. On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: hello, how can i put the character \ in a variable ? I've done the code below but errors occurs : $barre_oblique = \; Parse error: parse error,

Re: [PHP] variables

2004-02-19 Thread Richard Davey
Hello Dominique, Thursday, February 19, 2004, 5:49:43 PM, you wrote: DA how can i put the character \ in a variable ? DA I've done the code below but errors occurs : DA $barre_oblique = \; DA Parse error: parse error, unexpected T_STRING DA Please help $barre_oblique = \\; -- Best

Re: [PHP] variables

2004-02-19 Thread Dominique ANOKRE
ok thanks pb solved thank you everybody - Original Message - From: Richard Davey [EMAIL PROTECTED] To: Dominique ANOKRE [EMAIL PROTECTED] Cc: Php List [EMAIL PROTECTED] Sent: Thursday, February 19, 2004 5:52 PM Subject: Re: [PHP] variables Hello Dominique, Thursday, February 19

[PHP] Variables??

2004-02-15 Thread Alessandro Rodiani
I have a problem. When I call the function phpinfo() I can correctly see the page with the informationabout the server; but when I use a form to pass some information from a php page to another phppage, if I use a print() or an echo() function, I can't seemy variables. Why??? Help me

RE: [PHP] Variables??

2004-02-15 Thread Julien Wadin
] Objet : [PHP] Variables?? I have a problem. When I call the function phpinfo() I can correctly see the page with the information about the server; but when I use a form to pass some information from a php page to another php page, if I use a print() or an echo() function, I can't see my variables

Re: [PHP] Variables not working!

2004-01-28 Thread Alvaro Zuniga
Try this for a generic fix if it is the globals issue: Place this somewhere to set to TRUE or FALSE when needed $GLOBAL_FIX = TRUE; use an include on every script: if($GLOBAL_VARS_FIX) { if( phpversion() = '4.2.0' ) { extract($_POST); extract($_GET); extract($_SERVER);

Re: [PHP] Variables not working!

2004-01-20 Thread Rory McKinley
On 19 Jan 2004 at 21:43, Kaushan wrote: Hi, I am new to PHP scripting and struggling with the following problem. I have two files, an HTML file and a PHP file. HTML file contains a form with one text field and a submit button. When a user pressed the submit button, it calls the php file

RE: [PHP] Variables not working!

2004-01-20 Thread Larry Brown
: Kaushan [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Variables not working! Hi, I am new to PHP scripting and struggling with the following problem. I have two files, an HTML file and a PHP file. HTML file contains a form with one text

[PHP] Variables not working!

2004-01-19 Thread Kaushan
Hi, I am new to PHP scripting and struggling with the following problem. I have two files, an HTML file and a PHP file. HTML file contains a form with one text field and a submit button. When a user pressed the submit button, it calls the php file (form action=test.php ...). What the php file

[PHP] Variables

2004-01-15 Thread Alex Hogan
How do you insert a php variable into a javascript function? For instance; function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } alex hogan ** The contents of this e-mail and any files transmitted

Re: [PHP] Variables

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 9:47:27 PM, you wrote: AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } -- Best regards, Richard

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Brian V Bonini
On Thu, 2004-01-15 at 16:47, Alex Hogan wrote: How do you insert a php variable into a javascript function? For instance; function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } ?php echo 'function redirect(' . $MyVar . ') {'; echo 'location =' . $MyVar . ';}'; ? -- Brian

[PHP] PHP Variables

2003-12-06 Thread Lloyd Bayley
Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me stumped... I have some code to pull a question out of a database and display it on the screen. I also want to store it in a hidden var for use with the $_POST on the next page. Currently,

[PHP] Re: PHP Variables

2003-12-06 Thread Greg Beaver
Hi Lloyd, use quotes around your values echo input type=\text\ name=\question1_text\ value=\$question\br /; Regards, Greg -- phpDocumentor http://www.phpdoc.org Lloyd Bayley wrote: Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me

Re: [PHP] PHP Variables

2003-12-06 Thread John W. Holmes
Lloyd Bayley wrote: echo input type=text name=question1_text value=$questionbr; This returns first word. Please learn HTML. The value should have quotes around it. echo input type=\text\ name=\question1_text\ value=\$question\br /; or, even MORE correct: echo 'input

[PHP] Re: PHP Variables

2003-12-06 Thread Lloyd Bayley
Greg, Sheesh! I had neglected to do that...I've been working with a few different languages and I'm starting to confuse them I think. Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. Lloyd. :-) At 09:58 AM 7/12/2003, you

Re: [PHP] Re: PHP Variables

2003-12-06 Thread John W. Holmes
Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. Please learn HTML is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be back here with another

Re: [PHP] PHP Variables

2003-12-06 Thread Justin Patrin
John W. Holmes wrote: echo 'input type=text name=question1_text value=' . htmlentities($question) . 'br /'; Or even *MORE* correct echo 'input type=text name=question1_text value='.htmlentities($question).'/br/'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: PHP Variables

2003-12-06 Thread John Nichel
John W. Holmes wrote: Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. Please learn HTML is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be

[PHP] Variables scope question

2003-12-03 Thread Mike D
Hello, I have recently noticed something that I wasn't aware of until now. I have index.php which contains include1.txt and include2.txt. If a variable is set in include1.txt it will *only* have a local scope, even if I declare it GLOBAL. Is this normal or a bug? - MD

RE: [PHP] Variables scope question

2003-12-03 Thread Martin Towell
This doesn't sound right. It's doesn't behave like this for me. Can you supply an example? Martin -Original Message- From: Mike D [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 December 2003 10:35 AM To: PHP General list Subject: [PHP] Variables scope question Hello, I have

Re: [PHP] Variables scope question

2003-12-03 Thread Mike D
- From: Mike D [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 December 2003 10:35 AM To: PHP General list Subject: [PHP] Variables scope question Hello, I have recently noticed something that I wasn't aware of until now. I have index.php which contains include1.txt and include2.txt

[PHP] Variables - showing onpage

2003-11-30 Thread Biph
I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong? I'm using Win2K to test a site on my own computer

Re: [PHP] Variables - showing onpage

2003-11-30 Thread Jason Wong
On Sunday 30 November 2003 15:54, Biph wrote: I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong?

RE: [PHP] Variables - showing onpage

2003-11-30 Thread Jeroen Serpieters
, 2003 8:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Variables - showing onpage I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what

Re: [PHP] Variables - showing onpage

2003-11-30 Thread John Nichel
Biph wrote: I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong? I'm using Win2K to test a site on my

Re: [PHP] passing PHP variables to Javascript ...

2003-11-20 Thread David Strencsev
Cpt John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Kenn Murrah [EMAIL PROTECTED] I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP --

[PHP] passing PHP variables to Javascript ...

2003-11-17 Thread Kenn Murrah
Greetings. I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP -- i.e., $php_name = http://www.somewhere.com/something/3.jpg; , a filename that was generated dynamically in

Re: [PHP] passing PHP variables to Javascript ...

2003-11-17 Thread CPT John W. Holmes
From: Kenn Murrah [EMAIL PROTECTED] I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP -- i.e., $php_name = http://www.somewhere.com/something/3.jpg; , a filename that

[PHP] variables from perl cgi into a php

2003-11-14 Thread mailing
Hi I wonder if any one can help with this problem. I have a script working really well (not my scripting but my script) written in perl /cgi. I would like to write some simple scripts using the variables and data from the cgi script. Is there a way that I can extract the variables in the cgi

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread CPT John W. Holmes
From: mailing [EMAIL PROTECTED] I wonder if any one can help with this problem. I have a script working really well (not my scripting but my script) written in perl /cgi. I would like to write some simple scripts using the variables and data from the cgi script. Is there a way that I can

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread mailing
Thanks for your reply John... To embelish a bit... I have a multiuser web based image managment application (the Perl script) and I want to add some accounting scripts (to be written in php). The guy that wrote the perl script is unavailable to work it in the perl script due to time

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread CPT John W. Holmes
From: mailing [EMAIL PROTECTED] I have a multiuser web based image managment application (the Perl script) and I want to add some accounting scripts (to be written in php). The guy that wrote the perl script is unavailable to work it in the perl script due to time constraints - so I was

Re: [PHP] Variables not passing to mail script

2003-10-28 Thread Bob Rea
At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote: Disregard last email. I figured it out. Thanks. Care to tell the rest of us? I'm a newby and would like to know. Bob Rea PlusWeb [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.petard.us -- PHP General Mailing List

Re: [PHP] Variables not passing to mail script

2003-10-28 Thread CPT John W. Holmes
From: Bob Rea [EMAIL PROTECTED] At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote: Disregard last email. I figured it out. Thanks. Care to tell the rest of us? I'm a newby and would like to know. Hmmm, that's obvious, since you can't even spell newbie. ;) ---John Holmes... -- PHP

Re: [PHP] Variables not passing to mail script

2003-10-28 Thread John Nichel
CPT John W. Holmes wrote: From: Bob Rea [EMAIL PROTECTED] At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote: Disregard last email. I figured it out. Thanks. Care to tell the rest of us? I'm a newby and would like to know. Hmmm, that's obvious, since you can't even spell newbie. ;) ---John

[PHP] Variables not passing to mail script

2003-10-27 Thread Jeff - Harbornet
Hi all. I am running into a problem with posting html data into a PHP script. The script works on another site that I have created, with this html code, the variables are not passing to the sendmail.php script. Below is the HTML code: td width=608 height=807 valign=topdiv align=center

Re: [PHP] Variables not passing to mail script

2003-10-27 Thread Jeff - Harbornet
Disregard last email. I figured it out. Thanks. Jeff Harbornet Jeff - Harbornet wrote: Hi all. I am running into a problem with posting html data into a PHP script. The script works on another site that I have created, with this html code, the variables are not passing to the sendmail.php

[PHP] variables in e-mail 2nd

2003-10-17 Thread christian tischler
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code I use . . . $messagepart1 = ' html head

Re: [PHP] variables in e-mail 2nd

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 15:09:48 +0100, you wrote: I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code

Re: [PHP] variables in e-mail 2nd

2003-10-17 Thread Marek Kilimajer
christian tischler wrote: $messagepart2 = (echo $salutation); $messagepart2 = $salutation; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
What I do is make a PHP page/template with php variables in place. Then do something like this... $report = path/to/mytemp.php; $today = date(); ob_start(); include($report); $message = ob_get_contents(); ob_end_clean(); //echo $message

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 10:55 AM To: 'christian tischler'; [EMAIL PROTECTED] Subject: RE: [PHP] variables in e-mail 2nd What I do is make a PHP page/template with php variables in place. Then do something like

[PHP] variables passed through URL

2003-10-09 Thread Frank Tudor
If I have have set a url to be displayed like this: www.mysite.com/some_page.php?value=this and wanted to tag on another value what would I seperate the dtwo with/ Also since it is now displayed in the url and I need the value in some area on my form. How would I populate the value in a form

RE: [PHP] variables passed through URL

2003-10-09 Thread Chris W. Parker
Frank Tudor mailto:[EMAIL PROTECTED] on Thursday, October 09, 2003 1:48 PM said: How would I populate the value in a form tag? input type=text value=?echo (what goes here);? name=something You need to go here http://us4.php.net/manual/en/language.variables.external.php and read up.

RE: [PHP] Variables not passed on localhost setup

2003-10-02 Thread Angelo Zanetti
To: [EMAIL PROTECTED]; Gal Subject: Re: [PHP] Variables not passed on localhost setup From: Gal [EMAIL PROTECTED] Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini

Re: [PHP] Variables not passed on localhost setup

2003-10-02 Thread - Edwin -
Hi, On Thu, 2 Oct 2003 09:26:37 +0200 Angelo Zanetti [EMAIL PROTECTED] wrote: with regard to register_globals being off, what kind of security implications are there? And what would you define as badly/poorly written php code? Here's a (simple) example:

[PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Hi Guys, I've Googled and RTFM'd, but I can't seem to figure this out - it may not even be a php problem but I'm not sure. I've set up Apache, PHP and MySQL on my laptop running XP Home. Although I've coded php for a while now, I had never set these up on my own computer before. The php seems to

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread CPT John W. Holmes
From: Greg Watson [EMAIL PROTECTED] doesn't look as though variables are being passed from page to page. Register_globals is OFF in your php.ini file, so you need to use $_GET['testvar'] instead of $testvar. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Gal
Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On Greg Watson wrote: Thank you for that answer! That worked

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Ray Hunter
rename php.ini-recommended to php.ini and put it in C:\windows and you can now use that file. -- Ray On Wed, 2003-10-01 at 10:52, Greg Watson wrote: Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Brad Pauly
Greg Watson wrote: I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not there. I've ran a file search and still can't find it. The only ones that appear are 'php.ini-dist'

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread CPT John W. Holmes
From: Gal [EMAIL PROTECTED] Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On (and restart your web

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Greg Watson
Thank you all so much! That sorted it! Cheers! I didn't see that before because I'm blind. Metorphorically speaking. Put it down to code-blindness from staring at the screen too long. Weird thing is, my searches took me to http://www.php.net/configuration, which didn't mention the moving ini

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Chris
On Wed, 01 Oct 2003 14:22:30 -0400, Greg Watson [EMAIL PROTECTED] wrote: I'll check up on the security implications. Unfortunately for me, this is the way I was taught PHP. I'll have to rethink things I suppose! (and make sure you understand the security implications that may arise from having

<    1   2   3   4   5   >