Results 1 to 3 of 3
-
24th Apr 2012, 02:37 PM #1OPMember
Get to Post (PHP)
Hi, I'm recently having problems using Get because it shows a lot of vulnerabilities. What I need now is how do I work around this sample code?
PHP Code:<?php header("refresh:2;url=client_view.php?un=$un"); } ?>
so I'm using to get the values of $un usting the GET method. Because of this, there would be a lot of vulnurabilites.
How do make my way to send the $un to client_view.php without using GET but POST and also, it don't want it to have buttons to submit one.NewBiee Reviewed by NewBiee on . Get to Post (PHP) Hi, I'm recently having problems using Get because it shows a lot of vulnerabilities. What I need now is how do I work around this sample code? <?php header("refresh:2;url=client_view.php?un=$un"); } ?> So basically, it refreshes to the url xxx/client_view.php?un=$un so I'm using to get the values of $un usting the GET method. Because of this, there would be a lot of vulnurabilites. How do make my way to send the $un to client_view.php without using GET but POST and also, it Rating: 5
-
24th Apr 2012, 06:21 PM #2MemberWebsite's:
CoursesWeb.net MarPlo.netHi,
You can use cUrl to send data via POST from php to an url address, and then to get the response.
You can find on the net details about cUrl.
Or, you can add the value of $un into a SESSION, then, in client_view.php you get that value from SESSION.Free Courses HTML, CSS, Ajax, Flash, ActionScript for Web Masters.
Free PHP - MySQL Course, JavaScript - jQuery Course and tutorials.
-
24th Apr 2012, 06:39 PM #3Member
both POST and GET have the same amount of vulnerabilities ... it's just POST requires TamperData or a URLSnooper addon to change the POST'd data.
anyway, you cannot 'refresh' or 'location' via php headers to POST data .. you'd have to use a HTML form with the method set to POST and use javascript to autosubmit it (as I assume you want to autosubmit it since your PHP script is refreshing).
Edit: like marplo suggested, the best way to make it not vulnerable is to store the GET into a SESSION rather so it's not visible / tamperable by the front-end user (since it'd be handled server-side).
POST is user-side just like GET - so SESSION would be your best solution.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Advance Post Generator 1.2.5 Beta (With Post Type)
By WaReZ in forum Webmaster ResourcesReplies: 21Last Post: 21st Jun 2012, 12:35 PM -
Correction!!Rapid Post Creator!!Free!!Create Your Post Very Fast!!!735 Kb
By senorweb in forum Webmaster ResourcesReplies: 11Last Post: 21st May 2011, 01:08 PM -
Rapid Post Creator!!Free!!Create Your Post Very Fast!!!735 Kb
By senorweb in forum Webmaster ResourcesReplies: 1Last Post: 16th May 2011, 04:53 PM -
Advance Post Generator 1.2 (IMDB Grabber | Dual Output | Preview Post)
By WaReZ in forum Webmaster ResourcesReplies: 15Last Post: 30th Apr 2011, 06:05 PM -
Advance Post Generator 1.1 (IMDB Grabber | Posting Buttons | Save Post)
By WaReZ in forum Webmaster ResourcesReplies: 27Last Post: 30th Apr 2011, 06:05 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...