Hi,
Does Php can give us a way to find the name of all the POST variables
transmitted between two pages ?
I'm looking for a similar way to access those variables names than with
javascript and his document.forms["myform"].elements[0], something like
that...
Actually in my first form i have some dynamic names, and it's quite
difficult to exploit later, in form 2, when you have to rebuild them, i have
to use eval(), that's not so easy, so i'm looking for a smarter/easier way
to do it.
Any ideas ?
Thanks,
Arnaud 3 45766
In article <40***********************@news.free.fr>, "Arnaud" <b>
wrote: Does Php can give us a way to find the name of all the POST variables transmitted between two pages ?
array_keys($_POST) ?
JP
--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
"Arnaud" <b> wrote: Hi, Does Php can give us a way to find the name of all the POST variables transmitted between two pages ? I'm looking for a similar way to access those variables names than with javascript and his document.forms["myform"].elements[0], something like that...
Actually in my first form i have some dynamic names, and it's quite difficult to exploit later, in form 2, when you have to rebuild them, i have to use eval(), that's not so easy, so i'm looking for a smarter/easier way to do it.
This will give you both the names and values.
print_r($_POST);
--
Chris Hope
The Electric Toolbox - http://www.electrictoolbox.com/
"Chris Hope" <ch***@electrictoolbox.com> a écrit dans le message de
news:10**************@news.athenanews.com... This will give you both the names and values. print_r($_POST);
Thanks Chris and JP, that's exactly what i needed.
bye
Arnaud This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marcus |
last post by:
Hi All,
I was wondering if there is a way to ensure that when submitting forms
and using POST vars, the page sending the form resides on the same
server as the destination page specified in the...
|
by: sarah |
last post by:
Hi.. I'm having a problem trying to figure out the best way to
process a POST and add items to my database, and hope someone can help
me... :)
Background:
I have a database that I will use to...
|
by: Kit |
last post by:
Hi there,
I am recoding a website, and I want to add a generic footer to each
page, using an included file with PHP snippets. Part of that footer
would be a link to validate the page using the...
|
by: Deb M. |
last post by:
I am trying to find out how I can use the ASP.net framework yet still
post the variables to an external script (not ASPX) after the form has
been submitted. So, the ASPX page will still post to...
|
by: Lars Netzel |
last post by:
Hello!
I have a button, in the click event I have this code:
----------------------------------------------------------------------------
----------------------------
Response.Write("<script...
|
by: WhatsPHP |
last post by:
Hi
For some reason, at random posts, the post variables don't get thru to
the server. For example, if there is are two text fields: name and
email... (I have register_globals on)... When I try...
|
by: Vic Spainhower |
last post by:
Hello,
I have an HTML table that is being constructed from a MySQL table and
displays a form that includes a check box on 1 of the fields on the form for
each record. I have included in this PHP...
|
by: SupraFast |
last post by:
I have 2 forms on one page. I have hidden variables in each form, with separate names, that contain values. The user decides which form to submit on. Only 1 form will be processed.
Now my...
|
by: dmj07 |
last post by:
Hi,
I am running a stored procedure where I pass in a large list of variables e.g.
ALTER PROCEDURE dbo.Insert(@Variable1 varchar,
@Variable2 ...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |