SlicedThread
Register FAQ Members List Forum Rules Mark Forums Read MyThreads

Coding Corner Anything related to software coding & scripts


Go Back   SlicedThread > Technology Forums > Geek Central > Coding Corner > forwarding post data
Reply
 
LinkBack Thread Tools Display Modes
Old 15-08-2008, 05:09 AM   #1 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default forwarding post data

Is there a way that I can have a redirect page that also sends post data to the new page?

e.g form sends post data to redirect page, redirect page puts it in a file and then forwards it to be use on another page. Using php, no javascript please
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 15-08-2008, 09:08 AM   #2 (permalink)
Is a forum virgin
 
Join Date: Aug 2008
Gender: Male
Location: Wales
Posts: 7

Default

why dont you just send them to that page to start off with?
itsRhys is offline   Reply With Quote
Old 15-08-2008, 10:23 AM   #3 (permalink)
Go outside. Jesus.
 
Join Date: May 2006
Gender: Male
Location: Newcastle
Posts: 17,169

Default

sending post data without a form - Google Search
__________________
Quote:
Originally Posted by Mitch View Post
a cuet gay guy said he wanted to kiss me the other night.
Karl is offline   Reply With Quote
Old 15-08-2008, 05:16 PM   #4 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default

Quote:
Originally Posted by Karl View Post
all of those post the data to the page but don't take you to it.
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 15-08-2008, 07:34 PM   #5 (permalink)
I posted on a forum and I liked it
 
Join Date: May 2007
Gender: Male
Location: London
Posts: 816

Default

use the URL and $_GET

?
Jonathon is offline   Reply With Quote
Old 16-08-2008, 12:09 AM   #6 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default

its gonna hold a password, so don't really want to use $_get
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 16-08-2008, 12:47 AM   #7 (permalink)
Go outside. Jesus.
 
Alex's Avatar
 
Join Date: May 2006
Gender: Male
Location: South Wales, UK
Age: 16
Posts: 10,315

Default

Code:
<input type="hidden" value="<?php $_POST['hello'; ?>" />
?
__________________
./\_/\
( o.o ) meow.
.> ^ <
twitter
Alex is offline   Reply With Quote
Old 16-08-2008, 08:28 PM   #8 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default

if I use that the user will have to click a submit button, or id have to use javascript
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 16-08-2008, 10:28 PM   #9 (permalink)
Has settled in nicely
 
Joris's Avatar
 
Join Date: May 2006
Gender: Male
Location: Zanzibar
Age: 20
Posts: 1,441

Default

Insert it into a database, then query for the data later on.
Joris is offline   Reply With Quote
Old 18-08-2008, 02:53 PM   #10 (permalink)
Go outside. Jesus.
 
Join Date: May 2006
Gender: Male
Location: Newcastle
Posts: 17,169

Default

use sessions/cookies

$_SESSION['password'];

then destroy it once youre finished with it
__________________
Quote:
Originally Posted by Mitch View Post
a cuet gay guy said he wanted to kiss me the other night.
Karl is offline   Reply With Quote
Old 18-08-2008, 05:43 PM   #11 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default

I found another way to do it, thanks all anyway
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 18-08-2008, 06:29 PM   #12 (permalink)
Go outside. Jesus.
 
Join Date: May 2006
Gender: Male
Location: Newcastle
Posts: 17,169

Default

what was your way?

sessions are the easiest surely
__________________
Quote:
Originally Posted by Mitch View Post
a cuet gay guy said he wanted to kiss me the other night.
Karl is offline   Reply With Quote
Old 19-08-2008, 02:36 PM   #13 (permalink)
Had a little taste
 
Join Date: May 2008
Gender: Male
Posts: 53

Default

You could just use cURL to send the post data, because either way you should be verifying it on the other end.
Dentafrice is offline   Reply With Quote
Old 19-08-2008, 06:34 PM   #14 (permalink)
Go outside. Jesus.
 
Join Date: May 2006
Gender: Male
Location: Newcastle
Posts: 17,169

Default

why use curl when you can use sessions

hello am i invisible
__________________
Quote:
Originally Posted by Mitch View Post
a cuet gay guy said he wanted to kiss me the other night.
Karl is offline   Reply With Quote
Old 19-08-2008, 09:46 PM   #15 (permalink)
Sim
Has settled in nicely
 
Sim's Avatar
 
Join Date: May 2006
Gender: Male
Location: Scarborough, England
Age: 21
Posts: 5,940

Default

Quote:
Originally Posted by Karl View Post
why use curl when you can use sessions

hello am i invisible
Werd. Sessions surely must be the solution.

I think you need an avatar to stand out!
Sim is offline   Reply With Quote
Old 19-08-2008, 10:23 PM   #16 (permalink)
Has settled in nicely
 
Join Date: Dec 2008
Gender: Male
Location: London
Age: 17
Posts: 1,386

Default

I decided to just encrypt the postdata it then send it on its way using GET
__________________
"Personally its not God I dislike, its his fan club I cant stand"
Jakei is offline   Reply With Quote
Old 20-08-2008, 06:22 PM   #17 (permalink)
Go outside. Jesus.
 
Join Date: May 2006
Gender: Male
Location: Newcastle
Posts: 17,169

Default

yup sessions would be safer.
__________________
Quote:
Originally Posted by Mitch View Post
a cuet gay guy said he wanted to kiss me the other night.
Karl is offline   Reply With Quote
Old 29-08-2008, 02:36 AM   #18 (permalink)
Had a little taste
 
Join Date: May 2008
Gender: Male
Posts: 53

Default

It depends on if he is forwarding it to another server, or something on the same server, if it is on the same server (I don't think he specified) then yes, storing the data in a session is the best way to go.

If you are submitting data to another site, such as PayPal, MySpace, etc, you would need to use cURL to simulate the post request.
Dentafrice is offline   Reply With Quote
Reply

Tags
data, forwarding

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

BB 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
post photos of the snow here :) Jasmine General Discussion 60 06-02-2009 12:36 PM
THE POST IF U THINK SCREAM SHOULD B ALLOWED IN THE 18+ THREAD THREAD abbie Chatter 22 02-02-2009 03:52 AM


All times are GMT +1. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
no new posts