This is a discussion on "Viewing form results ???????" within the PHP Forum section. This forum, and the thread "Viewing form results ??????? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Viewing form results ???????
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Viewing form results ???????
Thanks muchly Last edited by cat101; Apr 25th, 2006 at 22:59. |
|
|
|
#2
|
|||
|
|||
|
Re: Viewing form results ???????
You want to see what exactly? The result of your data?
|
|
#3
|
|||
|
|||
|
Re: Viewing form results ???????
Exactly....i guess this must sound stupid but i don't know what to open, or click or upload???
e.g if some one puts their name in a field and checks a checkbox and then presses submit, how will i know they have pressed submit and where do i get their submission results from??? |
|
#4
|
|||
|
|||
|
Re: Viewing form results ???????
Well basically this is how it works.
Each input has a name and a value, sometimes that value can be set by you (example a checkbox or a hidden input field). But most of the time the value is something the user inputs (such as a text box) Ok now lets do our form named form.php
Open up your form for editing and above your form code type:
I put each of these values as a variable so i can use them however i wish later on. I then print the variables (as these variables hold our information) into a small statement. I then see if the tickbox has been ticked or not (remember the value of the checkbox is yes. If it isnt ticked there is no value. So i ask if the value is equal to NULL do nothing. Else print the statement. The last else statement is the second part of the first ever if statement asking if the form has been submitted. It hasnt so i then show the form. This is just an example, you can do whatever you want with the information. Hope this helps you. Last edited by sypher; Apr 26th, 2006 at 00:04. |
![]() |
| Tags |
| viewing, form, results |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Publicly viewable form results? | wealthy199 | Starting Out | 5 | Sep 27th, 2007 14:59 |
| Getting form results to email as an .html | griffster122 | Starting Out | 1 | May 29th, 2007 01:44 |
| Problem with results of form | Otter | PHP Forum | 2 | Nov 7th, 2006 13:35 |
| PHP form results $PHP_self is blank | jamina1 | PHP Forum | 17 | Sep 23rd, 2005 16:13 |
| Submitting Web form results to a database | theproman23 | Databases | 2 | Jun 30th, 2005 13:21 |