Hello,
I use a html form and php with global registers off how do I get the names
and values from that form?
I use $_POST[FIELD NAME]; but I have much more fields.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
T,
Couple of things to try:
$_REQUEST[Field Name]
or you could extract the values http://www.php.net/extract
Till We Meet Again...
Clifford W. Hansen
Operations Support Developer
Aspivia (Pty) Ltd.
+27 (0) 11 259-1150 (Switchboard)
+27 (0) 11 259-1019 (Fax)
+27 (0) 83 761-0240 (Mobile)
is for Power Calculation/title
body
form action=testphp1.php method=GET
Variable 1: input type=text name=varone
Variable 2: input type=text name=vartwo
br
input type=submit name=submit value=Submit Variables
input type=reset
/form
/body
/html
testphp1.php
html
.php method=GET
Variable 1: input type=text name=varone
Variable 2: input type=text name=vartwo
br
input type=submit name=submit value=Submit Variables
input type=reset
/form
/body
/html
testphp1.php
html
titleTest/title
body
pbTest/b/p
?php
$tmp = 20;
print(the value
Only typed it up in like 20 min, i normaly do that [code tidying] after :)
hehe tisk tisk...the merits of design havent been hammered through you yet?
you are lucky!!!
But, this does raise an interesting issuegood PHP code structure/form.
What do people consider good PHP form?
Ive coded
: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error
Here)
Only typed it up in like 20 min, i normaly do that [code tidying] after
:)
hehe tisk tisk...the merits of design havent been hammered through you
yet?
you are lucky!!!
But, this does raise an interesting issuegood PHP
Ive coded in both PHP and ASP and in both OO and function oriented.
Ultimately, i find functionally oriented PHP to be the best ... what do
other people think?
Having learnt how to program using Basic when I was 8, I had to unlearn a
lot of things as I moved from Basic to Pascal (what? I can't
Andrew Halliday wrote:
Ive coded in both PHP and ASP and in both OO and function oriented.
Ultimately, i find functionally oriented PHP to be the best ... what do
other people think?
As much classes/objects as possible, imo. 'functions' by themselves are
OK for smaller stuff,
but when you
a thought on the way to do things, thassal, interesting to compare
techniques. It scares me as to how few people seem to worry about form these
days ...
AndrewH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I had a form with just with one button, the action is a PHP file. And when
I hit "enter" the button (submit) form action was done.
Then I put other button (change) on this form, and now when I hit enter,
beside the
"pressed" button is the second one (I want that when I hit "enter" the
submit
Hi,
i'm sorry but I don't quite get what you mean. Which button is
pressed. or post the code.
Johannes
"Augusto Cesar Castoldi" [EMAIL PROTECTED] schrieb im Newsbeitrag
Pine.GSO.4.10.10103271417160.12546-10@venus">news:Pine.GSO.4.10.10103271417160.12546-10@venus...
I had a form with
Hi Augusto,
Submit buttons aren't that special, they just send a name=value pair.
Doing something like this :
If the following is pressed, if ($action == 'edit') will return true.
input type="submit" name="action" value="edit"
If the following is pressed, if ($action == 'new')
12 matches
Mail list logo