Say I have a form like -
form action=./foo.php?id=20 method=get
...
input type=submit... /
/form
If this form is submitted, the $_GET['id'] variable *is not* available.
If the method is changed to post, the $_GET['id'] variable *is* available.
Is this how forms are supposed to work???
Thanks
--
Gerard Samuel wrote:
Say I have a form like -
form action=./foo.php?id=20 method=get
...
input type=submit... /
/form
If this form is submitted, the $_GET['id'] variable *is not* available.
If the method is changed to post, the $_GET['id'] variable *is*
available.
Is this how forms are
--- Gerard Samuel [EMAIL PROTECTED] wrote:
Say I have a form like -
form action=./foo.php?id=20 method=get
...
input type=submit... /
/form
If this form is submitted, the $_GET['id'] variable *is not* available.
If the method is changed to post, the $_GET['id'] variable *is*
Chris Shiflett wrote:
Yes, when you use the GET method, the query string of the URL that your
browser requests contains the form data. I think you want to have
something like this in your form:
input type=hidden name=id value=20 /
Thanks John/Chris for the explanations...
--
PHP General Mailing
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Thanks in advance,
Nicolas Sanguinetti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
GodFoca wrote:
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Why would you think PHP can do anything client side?
a
GodFoca wrote:
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Thanks in advance,
Nicolas Sanguinetti
Thought it is possible to use javascript as suggested by
I have a php page, with a form I am attempting to submit.
form method=Post action=submitTest.php
input type=hidden name=Test value=Test Value
input type=submit value=Submit name=SubmitTest
form
In submitTest.php, I simply put
?php
print $Test;
?
Yet, I continually get the browser
, December 17, 2002 11:38 AM
Subject: [PHP] Submitting a Form
I have a php page, with a form I am attempting to submit.
form method=Post action=submitTest.php
input type=hidden name=Test value=Test Value
input type=submit value=Submit name=SubmitTest
form
In submitTest.php, I simply put
1. Try: $_POST[Test]
2. $_POST[testmultiple][2] (Will give you position 3 of the select.)
Or: $list = implode($_POST[testmultiple]);
Will give you the values selected in $list in a comma seperated list.
3. print_r($_REQUEST)
On Tue, 2002-12-17 at 12:38, Jay Thayer wrote:
I have
On Tuesday 17 December 2002 18:38, Jay Thayer wrote:
1. Any reason that I can not pass the variable to the submit page? I am
Try $_REQUEST['Test'] and look in the manual, the archives or a PHP-FAQ for
register_globals.
2. If I have a select name=testmultiple multiple HTML tag, how can I
Here's what I do.
We have an outsourced email newsletter management
system that accepts GET method - so I just use fopen()
to send the data to our list management system and
then drop the information into a database on our
server.
$form1_submit_url =
If you need something more complex look into CURL as
suggested earlier
http://curl.haxx.se/
http://www.php.net/curl
olinux
--- olinux [EMAIL PROTECTED] wrote:
Here's what I do.
We have an outsourced email newsletter management
system that accepts GET method - so I just use
fopen()
to
Hi All,
I have a problem that I hope you can help me with.
I'm using a third party shopping cart solution which is quite frankly naff.
They bundle some autoresponders with it. Unfortunately the autoresponders do
not work!. I want to find a temporary solution to this. The easiest way
would be
Don't think it can be done... at least not the way you describe. *maybe* it
can be done with javascript, but I'd try to do it this way:
1. user completes form, clicks submit
2. your scripts don't send any output to the browser (ie, it's not a page,
it's a script), generate the auto-responders,
Hello. I'm creating a simple Classifieds PHP application. It allows users
to view classifieds by category, and add new items to the database. For now,
I'm using MS Access 97 as my database (although eventually I would like to
switch to MySQL).
Anyway, one element of a classified is the
= Original Message From Duncan Hill [EMAIL PROTECTED] =
On Mon, 16 Jul 2001, garman wrote:
box where the user enters a description of the item he is selling.
If the user's input contains an apostrophe (aka a single quote ')
or even a double quote, the code gets confused.
addslashes()
= Original Message From Duncan Hill [EMAIL PROTECTED] =
On Mon, 16 Jul 2001, garman wrote:
box where the user enters a description of the item he is selling.
If the user's input contains an apostrophe (aka a single quote ')
or even a double quote, the code gets confused.
If I remember the best things with M$ oriented database, is to to double
it so ' should be '' and it should be ok. Anyway, that's what I do
when I have to do stuff with those software.
garman wrote:
= Original Message From Duncan Hill [EMAIL PROTECTED] =
On Mon, 16 Jul 2001, garman
the database access code when you decide to
switch to MySQL... so better to do it sooner than later and save
yourself the work down the road. :-)
-Original Message-
From: garman [mailto:[EMAIL PROTECTED]]
Subject: [PHP] submitting free-form text to a database
Hello. I'm creating
20 matches
Mail list logo