PDA

View Full Version : Set a variable from text field


Richard Diedrick
11-04-2010, 02:06 PM
I am trying to set a variable using the value of input from user in a text field. I then need to advance to that record using the value in the variable. I think that I should be able to set the value using the double click event of the text field then use that value to advance to that record.
Have tried this but does not work;
<input name="select" type="text" id="select" ondblclick="<?php $select=$_POST['select'] ?>" value="" size="3" $select />

Woulld advance the recordset using this;
<a href="<?php printf("%s?pageNum_prospects=%d%s", $currentPage, $select, $queryString_prospects); ?>">Select</a>
Any help appreciated.

davidj
11-04-2010, 04:17 PM
you have to type a value into a field and press a GoTo button yes?

Richard Diedrick
11-05-2010, 03:40 PM
If I knew code that worked I would not be asking. I have posted this or something that includes setting a variable from a text field 3 times and have yet to see an answer. Do you know how to set a variable from the value in a text field??

davidj
11-05-2010, 04:02 PM
I was trying to clarify/ simplify your question!!

I have posted this or something that includes setting a variable from a text field 3 times and have yet to see an answer.You will be waiting a hell of a long time for me to provide an answer with an attitude like that.

I will hand this one over to someone with a bit more tolerance :mad:

edbr
11-06-2010, 01:03 AM
watch the new members list for Job or his big sister joining the forum

DWcourse
11-06-2010, 05:03 AM
you have to type a value into a field and press a GoTo button yes?