mini_dumbo wrote:We're trying to do the following:
Say you have an input box, and the user types something in it and is prompted with a pop-up window with buttons "yes", "no" and "cancel", asking if he/she wants to save the changes... if user clicks yes, pop-up window will close and user will be returned to parent window with text in input box unchanged(i.e. origial text from inbox PLUS extra stuff typed in by user) , but if user clicks no, pop-up window will also close but instead of the previous case, only the original text(whatever was in it before user types anything) will remain in the box. We managed to do the "yes" case with some php codes but we're too much of a newbie in everything that we were so stuck from that point...
here's the most important part of the code....:mrgreen:
Submit Box: <br>
if ($userinput == "")
echo('<input name="userinput" onkeyup="show()" size="45" value="Quick fox" >');
echo('<input name="userinput" onkeyup="show()" size="45" value="'.$userinput.'" >');
We don't know how to alter the above code so it'll do the job for the "no" case as well..... 8O
Any help will be greatly appreciated!!
Bo & Vic
Users browsing this forum: Google [Bot], Google Feedfetcher and 1 guest