[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to

[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to

[PHP] Passing Access Variables to a Browser

2004-03-18 Thread Tyger Gilbert
Situation: I have an HTML page on one server which has a log-in form that includes just fields for User ID and Password. This form posts to a PHP script which authenticates the user against information in a MySQL database on the same server. Once authenticated, the script redirects the user to

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] Passing POST variables w/out a FORM submit

2003-11-13 Thread Damon Hill
Good day! I am reposting this and writing it a little differently so that maybe it is a little clearer what I am attempting to accomplish. I have a flash movie which accesses a MySQL database to retrieve coordinates for a map containing lots for a given subdivision. However, the connection

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Jay Blanchard
[snip] I have a flash movie which accesses a MySQL database to retrieve coordinates for a map containing lots for a given subdivision.However, the connection between the flash movie and the database was not available when the project was handed over to me. The flash code can not be modified and it

Re: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris Shiflett
--- Damon Hill [EMAIL PROTECTED] wrote: I am not privy to how to create the POST or GET response without a FORM. GET is easy, because you can just use fopen to open a remote URL just as if it were a local file, so long as this is set in your php.ini: allow_url_fopen = On As for POST, there

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Thursday, November 13, 2003 1:41 PM said: http://shiflett.org/hacks/php/http_post Ok I don't think this can be used in conjuction with a redirect but I'd like to find out. Here is some code I wrote up quick (and didn't test). What I'd like to

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Ok I don't think this can be used in conjuction with a redirect but I'd like to find out. Here is some code I wrote up quick (and didn't test). What I'd like to happen (as well as a million other people???) is I POST the data back to the previous

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Damon Hill
to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:41 PM To: Damon Hill; '[EMAIL PROTECTED]' Subject: Re: [PHP] Passing POST variables w/out a FORM submit

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Thursday, November 13, 2003 2:07 PM said: You are telling the browser to send a GET request to the URL $redirect. What the user sees in the browser is the response to this GET request, not the response to the POST request that you sent behind the

[PHP] passing random variables names

2003-11-07 Thread Yonatan Ben-Nes
Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables. Because the fields can change their name (id's) i need

Re: [PHP] passing random variables names

2003-11-07 Thread Jacob Vennervald
On Fri, 2003-11-07 at 09:40, Yonatan Ben-Nes wrote: Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic

RE: [PHP] passing random variables names

2003-11-07 Thread Ford, Mike [LSS]
On 07 November 2003 08:41, Yonatan Ben-Nes wrote: Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables.

[PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
Is this possible??? $blah[]=(a, b, c); a href=http://www.blah.com/page.php?blah=?PHP ECHO $blah ?link/a So basically I have a page that need an array to perform some function. Can I pass that array variable (and thus it's data) to it from another page? Thanks, Jeff -- PHP General Mailing

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Wouter van Vliet
() and split(). Wouter -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Wednesday 22 October 2003 18:59 To: [EMAIL PROTECTED] Subject: [PHP] Passing array variables in a GET Is this possible??? $blah[]=(a, b, c); a href=http://www.blah.com/page.php?blah=?PHP ECHO

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
memory :S) you can consider join() and split(). Wouter -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Wednesday 22 October 2003 18:59 To: [EMAIL PROTECTED] Subject: [PHP] Passing array variables in a GET Is this possible??? $blah[]=(a, b, c); a href

Re: [PHP] Passing array variables in a GET

2003-10-22 Thread Jason Wong
On Thursday 23 October 2003 02:41, Jeff McKeon wrote: I looked at the page you suggested but it vauge at best. Basically from what I've gathered using serialize with an array screws up the pointers in the array. Is this true? If you mean the internal pointer, ie the one that is reset by

[PHP] Passing url?variables

2003-02-27 Thread Mike
Hi, I'm running Apache 2.0 and PHP 4.2.2 on a RedHat 8.0 Machine. I'm unable to pass variables through a URL like index.php?test=something. Can anyone help here? I've looked through both my httpd.conf and php.ini files and didn't see anything... -Michael -- PHP General Mailing List

Re: [PHP] Passing url?variables

2003-02-27 Thread Leif K-Brooks
http://www.php.net/manual/en/security.registerglobals.php Mike wrote: Hi, I'm running Apache 2.0 and PHP 4.2.2 on a RedHat 8.0 Machine. I'm unable to pass variables through a URL like index.php?test=something. Can anyone help here? I've looked through both my httpd.conf and php.ini files and

[PHP] passing form variables with the same name

2002-12-05 Thread Doug Parker
I'm passing form variables from a script that is meant to display information to be updated in a mysql database, and it sends these to a script that updates the changed values. The problem is, I have a number of the same field being passed. For example, I have two fields in an html form -

Re: [PHP] passing form variables with the same name

2002-12-05 Thread 1LT John W. Holmes
I'd love to use an array, but I don't think you can pass an array value from a form and have it work on the update script - e.g. input name=Resource[0]... Ah, but you can... You can use exactly what you just wrote and have $_POST['Resource'][0] in your processing script. Loop through that

[PHP] passing multiple variables in a url

2002-11-14 Thread CJ
I have a contact us php script on my site that allows users to email direct from the webiste. I want to be able to pass the to address and subject line to the script so I can call teh web page from elsewhere on the site and have it automatically choose the correct email address and subject line.

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread pig pig
you will have to use to separate the variables. ie a href=contactus.php?email=directorsubject=job enquiry Otherwise it will be deem as one variable instead CK Ong --- CJ [EMAIL PROTECTED] wrote: I have a contact us php script on my site that allows users to email direct from the webiste.

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread BigDog
Does this not work... a href=contactus.php?email=directorsubject=job enquiry On Thu, 2002-11-14 at 14:11, CJ wrote: I have a contact us php script on my site that allows users to email direct from the webiste. I want to be able to pass the to address and subject line to the script so I can

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread Adam Williams
Change the space in job enquiry to a + Adam On 14 Nov 2002, BigDog wrote: Does this not work... a href=contactus.php?email=directorsubject=job enquiry On Thu, 2002-11-14 at 14:11, CJ wrote: I have a contact us php script on my site that allows users to email

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread CJ
that works fine thanks. Now for what to do with the variables (new post scanning for non alpha characters) Bigdog [EMAIL PROTECTED] wrote in message news:1037262239.10847.17.camel;pclnxrhunter.digitalglobe.com... Does this not work... a href=contactus.php?email=directorsubject=job enquiry

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread @ Edwin
And... --- CJ [EMAIL PROTECTED] wrote: ...[snip]... Also is this a big security risk as I will be echoing the 2nd variable as the contents of a form field. Would it be possible for someone to type in the URL with HTML/php in it that would make a mess of everything? Well, it is

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread @ Edwin
And if you want your pages to be valid xhtml, make sure that you have quotes: a href=... Also, be sure to use amp; instead of just . - E Adam Williams [EMAIL PROTECTED] wrote: Change the space in job enquiry to a + Adam On 14 Nov 2002, BigDog wrote: Does this not work... a

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread www.NukedWeb.com
BigDog wrote: Does this not work... a href=contactus.php?email=directorsubject=job enquiry No but this will: a href=contactus.php?email=directorsubject=job enquiry For more adversity between browsers, use this: a href=contactus.php?email=directorsubject=job%20enquiry -- Submit your PHP or

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread Justin French
on 15/11/02 12:11 AM, CJ ([EMAIL PROTECTED]) wrote: I have a contact us php script on my site that allows users to email direct from the webiste. I want to be able to pass the to address and subject line to the script so I can call teh web page from elsewhere on the site and have it

Re: [PHP] Passing the variables ...

2002-10-29 Thread Chris Hewitt
Mukta Telang wrote: I tried using echo($_GET['$textbox']) instead of printf statement in As the name of your textbox is textbox not $textbox, use $_GET['textbox'] instead. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing the variables ...

2002-10-29 Thread Maxim Maletsky
Ever since PHP 4.2.0 (in PHP v4.1.0 it was not default yet) you need to access the value in variable $textbox via $_POST variable: printf(BRhello %s!,$_POST['textbox']); -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish

Re: [PHP] Passing the variables ...

2002-10-29 Thread Peter J. Schoenster
On 29 Oct 2002 at 9:41, Mukta Telang wrote: I have written followong code in hello.html: FORM ACTION=hello.php METHOD=POST INPUT TYPE=TEXTAREA NAME=textbox ?php printf(BRhello %s!,$textbox); ? This script works fine with php in redhat 7.2 system but does not work in solaris 7 ! I

[PHP] Passing the variables ...

2002-10-28 Thread Mukta Telang
I have written followong code in hello.html: HTML HEAD /HEAD BODY FORM ACTION=hello.php METHOD=POST Benter your name:/B INPUT TYPE=TEXTAREA NAME=textbox INPUT TYPE=SUBMIT /FORM /BODY /HTML and following in hello.php: HTML HEAD /HEAD BODY ?php printf(BRhello %s!,$textbox); ? /BODY /HTML This

Re: [PHP] Passing the variables ...

2002-10-28 Thread @ Edwin
Hello, Mukta Telang [EMAIL PROTECTED] wrote: [snip] I tried using echo($_GET['$textbox']) instead of printf statement in hello.php.. [/snip] Try $_POST['textbox'] instead. (You were using method=post.) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Passing PHP variables into javascript

2002-07-29 Thread Bill Hudspeth
I am having a problem passing a variable from PHP to Javascript and getting my JS function to recognize a form element object. I am trying to use the selection of a particular option in a dropdown menu to control the visibility of another form control element (another select box). In other words,

[PHP] Passing PHP Variables

2002-01-17 Thread John (News)
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- PHP

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Ben Sinclair
Either use sessions or pass it via POST in using a form. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: John (News) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:48 PM Subject: [PHP] Passing PHP Variables I need to pass a variable e.g. $var1

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Mehmet Kamil ERISEN
If you are using sessions, use it as a session variable. --- John (News) [EMAIL PROTECTED] wrote: I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed

[PHP] Passing php variables to perl script

2001-09-27 Thread Bertrand TACHAGO
Please i want to know how to pass variables (such as $PHP_AUTH_USER and $PHP_AUTH_PW) from php to Perl script which is in apache cgi-bin directory. Thanks in advance for help -- Moise Bertrand TACHAGO Computer scientist Volunteer DBMS Specialist SDNP Cameroon, 506 Hajal Center Building Yaounde

[PHP] passing string variables in url

2001-04-09 Thread Claudia Smith
I am passing a string value via a url to be used for printing on a page and for sending info via email. I first encode the string before passing it. The issue I have is for strings that contain single or double quotes. When I print the value that has been passed in the url the \ is printed.

Re: [PHP] passing string variables in url

2001-04-09 Thread Alexander Wagner
Claudia Smith wrote: I am passing a string value via a url to be used for printing on a page and for sending info via email. I first encode the string before passing it. This is correct, but you should be using urlencode() instead of rawurlencode(). To be frank, I don't know what the

[PHP] Passing JavaScript variables

2001-03-15 Thread Gary
Is there a way to pass a JavaScript variable to a PHP function? Thanks, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]