473,586 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1635
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.c om> wrote in message
news:5r******** *************** *********@4ax.c om...
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="updateu sers.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.c om> wrote in message
news:5r******** *************** *********@4ax.c om...
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($_POS T);

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="updateu sers.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*******@attgl obal.net
=============== ===
Jul 21 '05 #4

"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:cI******** ************@co mcast.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
2823
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
6367
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 newbie's not trying to follow ESR's advice.) A month or so ago (in a thread found here: http://tinyurl.com/5bj8j), I suggested that it might help the...
3
4187
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 code will insert a visual indicator (e.g. *) to convey that the field must be filled in. However, if the user has made a selection in the pulldown...
2
2101
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. Each time the user selects one of the broker items I need to display a Image of the broker in the table cell next to it. I have found a number of...
5
2248
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 records in table1. When the user clicks on one of the records, the second list box will show all of the records related to that from table2. Is...
10
3410
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 database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in...
0
2903
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 strDataValueField; string strDataTextField; public CreateEditItemTemplateDDL(string DDLName,string DataValueField,string
4
4386
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. When an option is selected in the 2nd select list, the ASP page posts itself. Assume that the 1st select list has the following 10 options (note...
5
1874
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, let's say one list/menu is where the user selects "Program Name" and a second is for selecting "Project Name". If the user makes a selection from the...
0
7911
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.