home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP links

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1943
Discussions: 200,992, Posts: 2,379,903, Members: 246,360
Old May 21st, 2004, 08:33 PM   Digg it!   #1 (permalink)
Member
 
Join Date: May 2004
Posts: 184
Arrow
PHP links

Is there any way to send information through "POST" method using a standard link, not form submit?
VillageIdiot906 is offline   Reply With Quote
Old May 23rd, 2004, 10:45 PM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.
jkrohn is offline   Reply With Quote
Old 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.
VillageIdiot906 is offline   Reply With Quote
Old May 25th, 2004, 02:04 PM     #4 (permalink)
Ultimate Member
 
ShawnD1's Avatar
 
Join Date: May 2003
Posts: 1,824
Send a message via AIM to ShawnD1 Send a message via MSN to ShawnD1
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); ?>" />
ShawnD1 is offline   Reply With Quote
Old May 27th, 2004, 02:21 AM     #5 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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
jkrohn is offline   Reply With Quote
Old May 27th, 2004, 07:55 AM     #6 (permalink)
Ultimate Member
 
ShawnD1's Avatar
 
Join Date: May 2003
Posts: 1,824
Send a message via AIM to ShawnD1 Send a message via MSN to ShawnD1
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.
ShawnD1 is offline   Reply With Quote
Old 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.
VillageIdiot906 is offline   Reply With Quote
Old February 23rd, 2005, 12:03 AM     #8 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,468
Send a message via AIM to Siliconjunkie
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!
Siliconjunkie is offline   Reply With Quote
Old February 23rd, 2005, 12:21 AM     #9 (permalink)
dword to your moms
 
krohnjw's Avatar
 
Join Date: Oct 2001
Location: ~/
Posts: 3,195
Send a message via AIM to krohnjw
I would have to 2nd the reccomendation for sessions. You can establish session vars and pass information with each session easily and securely.
krohnjw is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
TechIMO lifers need your IMO Love2Learn Graphic Design and Digital Photography 19 December 27th, 2002 12:42 AM
If I wanted to learn... RainFire Webmastering and Programming 2 October 18th, 2002 11:46 AM
PHP include in HTML, help? Whir Webmastering and Programming 7 October 7th, 2002 06:07 PM
M$ and Linux cowboybooter Applications and Operating Systems 22 September 7th, 2002 08:07 PM
favorite php sites dragonb Webmastering and Programming 0 December 6th, 2001 02:39 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3083)
Charges against non-tippers dropped.. (20)
Health Care Rationing (13)
Delete an OS (17)
Nvidia GTX 260 problem (10)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
[F@H SPAM 11/16/09] ! 1/2 months to.. (40)
windows 7 problem (7)
Internet Lost (5)
Recent Discussions
Print spooler problem (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (40)
Foxconn Blackops x48 MoBo (3)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Nvidia GTX 260 problem (10)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)


All times are GMT -4. The time now is 09:49 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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