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

posting form to self with data display !!!

Hi guys,
I am new to php. can you tell me how can we post a form to same page and display to posted data on the same page with form. Actully i need a form if i submit it i want the submitted data displaying on the same page and i want to submit a new data with the same behaviour.
my second question is is there anyway if i can use a global variable in php for all web pages of my web site. As we do in ASP in global.asa
I need a global variable that holds some value and i need to access it on another page
Nov 28 '07 #1
3 1332
MarkoKlacar
296 Expert 100+
Hi guys,
I am new to php. can you tell me how can we post a form to same page and display to posted data on the same page with form. Actully i need a form if i submit it i want the submitted data displaying on the same page and i want to submit a new data with the same behaviour.
my second question is is there anyway if i can use a global variable in php for all web pages of my web site. As we do in ASP in global.asa
I need a global variable that holds some value and i need to access it on another page
Hi,

to answer your first question you need to look at $_GET and $_POST.
To answer your second question, there is a way to do that, you need to look at $_SESSION.

Hope this help, get back to me if you need more help.

Cheers
Nov 28 '07 #2
Markus
6,050 Expert 4TB
Hi,

To answer your second question, there is a way to do that, you need to look at $_SESSION.

Hope this help, get back to me if you need more help.

Cheers
Or a cookie :)


mmmm cookies.
Nov 28 '07 #3
MarkoKlacar
296 Expert 100+
Or a cookie :)


mmmm cookies.
hehehe, I know they're tasty but as good as everyone (new to php or not) have heard of them. That's why it's also worth taking a look at the $_SESSION and getting familiar with it.

Cheers
Nov 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Arnold Shore | last post by:
A really weird thing (to me, anyway) I've encountered is in a UTF-8 test script. Here, the input - a single two-byte Cyrillic character (as reported by Javascript in the originating form) is...
5
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
7
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
10
by: Michael B. Trausch | last post by:
Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences _removed_ from...
3
by: underground | last post by:
I found this form on the scripts. However when I attemp to open the php file on the sever I get a error message Parse error: syntax error, unexpected $end on line 238 <? /** * Main.php * *...
3
by: scripteaze | last post by:
posting to a form with no form name or it's just that i cant find the form name. can anyone explain how to either post to a form with no name or, find the name of the form..here my current output,...
1
by: William Gill | last post by:
I hope I can state this clearly enough. I am redoing some of my html(php) forms. I'm trying to break things into three functions on a self processing php page: 1) show the form (and populate...
2
by: =?Utf-8?B?Umlja1NlYW4=?= | last post by:
I have a long form within a panel which exceeds the maximum height of 876. I use the following code to print the form but it prints only the portion of the form that is displayed on the screen (max...
8
by: chromis | last post by:
Hi, I'm writing a contacts section for a cms on a website, I've decided to write the section in OO code. So far I have my Contacts object and a page structure I would use for a procedural site. ...
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
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: 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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.