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
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
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
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 --
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
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
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
[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
--- 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
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
--- 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
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
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
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
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
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.
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
() 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
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
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
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
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
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 -
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
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.
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.
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
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
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
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
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
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
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
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
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
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
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
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:
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,
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
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
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
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
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.
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
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]
46 matches
Mail list logo