PHP links  | |
May 21st, 2004, 08:33 PM
|
#1 (permalink)
| | Member
Join Date: May 2004
Posts: 184
| PHP links
Is there any way to send information through "POST" method using a standard link, not form submit? |
| |
May 23rd, 2004, 10:45 PM
|
#2 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,552
|
Create a form using all <input type=hidden>. Then use OnClick in the link to execute a javascript function that sumbits the form via POST to the correct address.
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
May 24th, 2004, 12:47 AM
|
#3 (permalink)
| | Member
Join Date: May 2004
Posts: 184
|
Yes, yes. But then people can see all info by right-click>view source. |
| |
May 25th, 2004, 02:04 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: May 2003
Posts: 1,824
|
What are you trying to do exactly? Technically speaking, putting PHP variables in the link itself is the POST method. Look at this URL: http://myfiles.dyndns.org/picture_fr...ller-small.jpg
You can see what page it points to, and you can see the 1 variable specified.
Then on the page the link points to, have PHP acknowledge what the variable "frame" is. Code: <?php
$frame = $_GET['frame'];
?>
<img src="<?php echo ($frame); ?>" />
|
| |
May 27th, 2004, 02:21 AM
|
#5 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,552
|
ShawnD1: No, that is the GET method not POST. Your entire post is the GET method.
VillageIdiot906: Exactly what are you trying to hide? Without knowing what it is I can't offer much than to use a javascript function to obfuscate your code.
Jkrohn |
| |
May 27th, 2004, 07:55 AM
|
#6 (permalink)
| | Ultimate Member
Join Date: May 2003
Posts: 1,824
|
My mistake then. I thought it was a little of both since you can replace $_GET with $HTTP_POST_VARS, and the script will still work (PHP warnings will be logged though).
Would it be possible for your page to use the GET method instead?
Last edited by ShawnD1 : May 27th, 2004 at 07:59 AM.
|
| |
February 22nd, 2005, 11:58 PM
|
#7 (permalink)
| | Member
Join Date: May 2004
Posts: 184
|
Wow. This is an old post. But I still need to figure out how to do this.
I'm trying to send private information (like passwords) across multiple pages. |
| |
February 23rd, 2005, 12:03 AM
|
#8 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,468
|
Use a cookie or session variable after they authenticate. Either would be more secure than passing the credentials every time.
__________________
My computer is bigger than yours!
|
| |
February 23rd, 2005, 12:21 AM
|
#9 (permalink)
| | dword to your moms
Join Date: Oct 2001 Location: ~/
Posts: 3,195
|
I would have to 2nd the reccomendation for sessions. You can establish session vars and pass information with each session easily and securely. |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |