Welcome Guest, Not a member yet? Register   Sign In
how to get the value of textfield in variable on same page
#1

[eluser]Unknown[/eluser]
how to get the value of textfield in variable on same page?
#2

[eluser]bitist[/eluser]
Do you mean the value of a textfield in javascript variable?
#3

[eluser]Popcorn[/eluser]
First of all, wrong forum.

If you mean the value of a form text field then you can access it with Javascript, look at some jQuery tutorials to help you understand how to use it.
#4

[eluser]a.g.r.c[/eluser]
Or you can have some PHP above everything in your page, set a variable with a default value of null. Send the form to the same page, if it has a value add it to the variable, if not continue as normal.

You could also reset the form action upon setting the variable.

My code is messy but the logic is there.




Theme © iAndrew 2016 - Forum software by © MyBB