Sunday, April 7, 2013

How to pass POST variables without a form, what should I do?

Idea from Gerald: How do I pass a POST variable without a form?

I want to pass a post variable.


The form would look like this:


The problem is that this way of doing it will only let me have the submit button as the means of passing the variable back to the original page.


I want it to be passed with a link but I can’t get it to work.


However this is tips on How do I pass a POST variable without a form? may really should clear up difficulties only on their. Simply this’ll help in lots of ways; and produce yourself much better. Who want tips on How do I pass a POST variable without a form? may well be simple solution later on in life.

Most practical answer:


Answer by Sleepless in Tokyo

You can’t pass a POST variable without a form.


Answer by Salman A

Either append the value in a query string and retrieve it from the $ _GET array or use a javascript link.


1) <a href="?register=new”>New Registration


On the server side you can access the variable thru: $ _GET[ "register" ]


2)


New Registration


Answer by Andrew G

You can only pass a post variable if you post is.

Now w/ ajax, you can transfer javascript variables.


Answer by varun pandey

with the use of java script u can post it.

document.write(“onclick”);ajex is also help u


Answer by Hansika

Oracle Tutorials- http://alldatabase.info/


Answer by EdSF

Well, you can follow the client-side Javascript options mentioned – it’s certainly the easiest way to do it.


If you like tinkering on the server-side of things, you can definitely create an HTTP POST in code…..


Fully grasp far better?

Leave your own private answer inside the comments!


ubuntu server enterprise cloud


Representation through ubuntu server enterprise cloud


ubuntu server enterprise cloud


How to pass POST variables without a form, what should I do?

No comments:

Post a Comment

Blog Archive