473,246 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

How can I get list of POST fields in a second page?

I have a form on a page that is built on results from a db query. The user
can tick boxes/edit fields etc, and then submit to a second page that will
update the db. How do I know what my POST fields are and how many in the
second page (I am naming my fields in the form on the first by being a
common name with a unique ID from each record on the front, ie. each record
has a id_name, id_email etc etc.
Yes, I'm a bit of a newbie to this...
James.
Jul 21 '05 #1
4 1619
On Thu, 21 Jul 2005 10:11:01 +0100, JamesB wrote:
update the db. How do I know what my POST fields are and how many in the


print_r($_POST);

Marian

--
Barrierefreie Online-Kurse: HTML, PHP, MySQL, Word, Excel
http://www.lernpilot.de/wbt/
Jul 21 '05 #2

"Marian Heddesheimer" <08*************@spamgourmet.com> wrote in message
news:5r********************************@4ax.com...
On Thu, 21 Jul 2005 10:11:01 +0100, JamesB wrote:
update the db. How do I know what my POST fields are and how many in the


print_r($_POST);


Thanks for that - I seem to be doing something not quite right though! As a
test, I put a simple html form in a page:

<form name="form2" method="post" action="updateusers.php">
<input type="checkbox" name="checkbox" value="checkbox">
<input type="checkbox" name="checkbox2" value="checkbox">
<input type="submit" name="Submit" value="Submit">
</form>

on the updateusers.php page I put the command you gave, but all I get is:

Array
(
[Submit] => Submit
)And not the name of the checkboxes.Same occurs with my php-built table of
checkboxes and text fields (but I figure to get it working on something
simple first...)James
Jul 21 '05 #3
JamesB wrote:
"Marian Heddesheimer" <08*************@spamgourmet.com> wrote in message
news:5r********************************@4ax.com...
On Thu, 21 Jul 2005 10:11:01 +0100, JamesB wrote:

update the db. How do I know what my POST fields are and how many in the


print_r($_POST);

Thanks for that - I seem to be doing something not quite right though! As a
test, I put a simple html form in a page:

<form name="form2" method="post" action="updateusers.php">
<input type="checkbox" name="checkbox" value="checkbox">
<input type="checkbox" name="checkbox2" value="checkbox">
<input type="submit" name="Submit" value="Submit">
</form>

on the updateusers.php page I put the command you gave, but all I get is:

Array
(
[Submit] => Submit
)And not the name of the checkboxes.Same occurs with my php-built table of
checkboxes and text fields (but I figure to get it working on something
simple first...)James


James,

You'll only get the checkboxes back if they are actually checked.

Try checking one (or both) of the checkboxes before clicking on Submit.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 21 '05 #4

"Jerry Stuckle" <js*******@attglobal.net> wrote in message
news:cI********************@comcast.com...

James,

You'll only get the checkboxes back if they are actually checked.

Try checking one (or both) of the checkboxes before clicking on Submit.


Ah, that works. Thanks for pointing that out!
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Alexandre | last post by:
Hi again, What's the best I can do to validate fields like date before send my datas. thx
0
by: Brian van den Broek | last post by:
Hi all, There have been a few posts over the last month or so expressing a bit of exasperation with the "rising tide of newbie's". (Or, more accurately, the rising tide of questions from...
3
by: Mark R | last post by:
I have one .asp page with a SELECT pulldown list on it and some INPUT fields. When SUBMIT is clicked the form data is submitted to that same page and validated. If INPUT fields are empty the asp...
2
by: | last post by:
I am hoping a mixed ASP- Javascript programmer could help me with this scenario: I have a list box populated with randomized records (NewID()) from a Broker (Salesperson) sql server table. ...
5
by: chris vettese | last post by:
I have a table called table1 that has a one to many relationship to table2. What I would like to do is have a form with two list boxes on it. The first list box will have a field from all of the...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
4
by: rn5a | last post by:
A Form has 2 select lists. The 1st one whose size is 5 (meaning 5 options are shown at any given time) allows multiple selection whereas the 2nd one allows only 1 option to be selected at a time. ...
5
by: jmartmem | last post by:
Greetings, I am using Dreamweaver CS3 to design an ASP page that contains an Insert Record Form. Within this form are two list/menu form fields that I would like to "synchronize". In other words,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.