Is it possible to make a POST in PHP by pressing a link instead of a button? and then get that POST?
I tried doing this via a link but of course it didn't work.. anyone knows how to make it? Currently my website is running on $_GET but with it I can only get these:-
http://forum.codecal...n-friendly.html <- Click to see thread
but if I will be able to make a POST via a link I will be able to obtain 100% SEO friendly links.
Please help, and thanks!
$_POST via link
Started by TcM, Jun 15 2007 12:32 PM
5 replies to this topic
#1
Posted 15 June 2007 - 12:32 PM
|
|
|
#2
Posted 17 June 2007 - 08:38 PM
Not that I know of, you might be able to use JavaScript to pass along values or use cookies to store information, but as far as using a link to pass along POST variables and not GET variables, I'm pretty sure it cannot be done.
#3
Posted 17 June 2007 - 11:01 PM
Well then I was right, it is not possible, because I tried it but it didn't work.. but I thought that I had the code wrong, as I'm still a newbie in PHP.
Thanks I will have a look at the JavaScript thing, but I don't like using cookies.. most people disable them.
EDIT:- saw the Javascript code.. it's done either via submit or via the url (Like $_GET).. not what I actually want. but now I will try with htaccess... if unsuccessful I have to surrender and use cookies...
Thanks I will have a look at the JavaScript thing, but I don't like using cookies.. most people disable them.
EDIT:- saw the Javascript code.. it's done either via submit or via the url (Like $_GET).. not what I actually want. but now I will try with htaccess... if unsuccessful I have to surrender and use cookies...
#4
Guest_Jordan_*
Posted 18 June 2007 - 03:23 AM
Guest_Jordan_*
When you say make a post do you mean get variables from a link? I'm not sure I understand but it sounds like you figured it out with GET, right?
#5
Posted 18 June 2007 - 03:39 AM
No, I don't want to use GET, my website uses GET already but I want it to use POST.. obviously to obtain SEF links.. but I'm trying in htaccess... when my testing site comes up again, as it's down at the moment and I don't want to mess with the original website.
#6
Posted 19 June 2007 - 11:39 AM
Anyways my testing site is still down, so I messed with the original website and at least I succeeded. And I used GET but the method used does not show the GET in the html thanks to htaccess.


Sign In
Create Account


Back to top









