473,325 Members | 2,860 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,325 software developers and data experts.

array of form data

After submitting form data to a page called procform.php, I want to be
able to see a list or array of all the inputs that were submitted from
the form. I scoured the PHP books I own and did some google searches,
but found nothing in this regard. I know I can use $myformvar in
procform.php if I know the form had an input like this: <input
type=hidden name=myformvar value=190> But, surely, there must be a way
to get a list of all the variables assigned from the form in PHP, right?

Mark
Aug 31 '05 #1
2 1231

Mark wrote:
After submitting form data to a page called procform.php, I want to be
able to see a list or array of all the inputs that were submitted from
the form. I scoured the PHP books I own and did some google searches,
but found nothing in this regard. I know I can use $myformvar in
procform.php if I know the form had an input like this: <input
type=hidden name=myformvar value=190> But, surely, there must be a way
to get a list of all the variables assigned from the form in PHP, right?


If your form method is "get", do

<?php
echo '<pre>';print_r ($_GET);echo '</pre>';
?>

If it is "post", substituted $_POST for $_GET.

Ken

Aug 31 '05 #2
> If your form method is "get", do

<?php
echo '<pre>';print_r ($_GET);echo '</pre>';
?>

If it is "post", substituted $_POST for $_GET.

Ken


Ah!! I *knew* it was something simple! You rock!
Mark
Aug 31 '05 #3

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

Similar topics

5
by: Paul C-T | last post by:
Hi, Am I trying to be too clever here? I am trying to write a PHP page to enable me to enter values into a form then write those values to a text file. I want to use the form & table that...
5
by: Andrew V. Romero | last post by:
At work we have an excel file that contains the list of medications and their corresponding strengths. I would like to save the excel file as a text list and paste this list into a javascript...
1
by: John Miller | last post by:
I'm developing a form that captures patient information. In the form, I need the ability to add several insurance policies. The approach I have decided to take is to load the separate insurance...
10
by: Danny | last post by:
I am working on a project where I will receive xml documents from clients machines as a byte array. They will use the web browser navigate method to post the data to my ASP.NET page. I then pick up...
9
by: Mike | last post by:
Hello, How do I send an array from a form to another php page?I want to bundle up some data from form fields in an array and send them together like that. I must be missing something? Thanks Mike
4
by: Cerebral Believer | last post by:
Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is...
3
by: assgar | last post by:
Hi I thought I had resolved this problem but I am intermittently the receving the warnings below. This code consist of a 1) HTML form, 2) a display function on the HTML form and 3) a...
4
by: assgar | last post by:
Hi Seasons Greetings Its back, I am being haunted. I thought I had resolved this problem but I am intermittently the receving the warnings below. This code consist of a 1) HTML form, 2)...
6
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post by:
Hey guys, I've searched high and low for a way to populate a vb array with data from a javascript array. I can find 50 ways to do it with ASP but not one for VB. I appreciate what help you can...
4
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.