Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 3:38 PM   #1
^MisterJingo^
 
^MisterJingo^'s Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Passing on POST data with Location:

"DUC" <dulum@eisa.net.au> wrote in message
news:3f1487ae$1@news.comindico.com.au
> Hi All,
>
> I want to redirect a page using the Location: header, and at the same
> time, pass any $_POST'ed data to that page.
>
> Does anyone know of a way?
>
> Thank You,
> DUC


Do you mean pass the data back to the page on which the form exists (which
takes the data from the user) or to pass the data to a new page using the
Location:header method?

If you want the former, simply make a self submitting form, a hidden field
could be used to detect the form has been submitted, so the new section of
html could be outputted rather than the form itself. If its the latter you
have a few options. The first is by attaching the variables to the
Header:location url as using the GET method i.e.
location.php?var1=$var1&var=$var2. If you don't want your address to contain
the variable data, the other method is by invoking a session for the
duration of calling the new page. once the new page is loaded, pull the data
from the session and if its no longer needed, simply destroy it.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 3:40 PM   #2
Sergiu
 
Sergiu's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Passing on POST data with Location:

I think the solution with the session vars is the better and the safest.

Sergiu.

"^MisterJingo^" <misterjingo@keysurf.net> wrote in message news:<od0Ra.1275$Fz2.667@news-binary.blueyonder.co.uk>...
> "DUC" <dulum@eisa.net.au> wrote in message
> news:3f1487ae$1@news.comindico.com.au
> > Hi All,
> >
> > I want to redirect a page using the Location: header, and at the same
> > time, pass any $_POST'ed data to that page.
> >
> > Does anyone know of a way?
> >
> > Thank You,
> > DUC

>
> Do you mean pass the data back to the page on which the form exists (which
> takes the data from the user) or to pass the data to a new page using the
> Location:header method?
>
> If you want the former, simply make a self submitting form, a hidden field
> could be used to detect the form has been submitted, so the new section of
> html could be outputted rather than the form itself. If its the latter you
> have a few options. The first is by attaching the variables to the
> Header:location url as using the GET method i.e.
> location.php?var1=$var1&var=$var2. If you don't want your address to contain
> the variable data, the other method is by invoking a session for the
> duration of calling the new page. once the new page is loaded, pull the data
> from the session and if its no longer needed, simply destroy it.

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing information to PHPBB? joebeta PHP 2 10-08-2008 4:42 PM
Please help - Cracking elevation data format in data file Kevin Fishburne Software Programming 10 06-12-2007 11:31 PM
map and location data for mallorca / baleares / spain Horst Bahr GPS 0 06-12-2007 5:14 PM
Passing table name as argument to a stored procedure robocop Database 0 06-10-2007 12:19 AM
Network sharing and by-passing the public only Don Windows 0 05-29-2007 12:49 AM


Featured Websites




All times are GMT +1. The time now is 12:14 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98