Hello,
here is the goal:
1) user on a form, clicks a button (like "Get Next Listing Number").
2) php function then runs mysql statement to get the next Listing Number. (note: it is NOT an auto generated key, etc)
3) then a popup message to user displays the Listing Number.
4) user enters the Listing Number in the form field and clicks save.
What is the best way to do that?
thanks
PS. yes, I realize mixing server side and client site scripts
here is the goal:
1) user on a form, clicks a button (like "Get Next Listing Number").
2) php function then runs mysql statement to get the next Listing Number. (note: it is NOT an auto generated key, etc)
3) then a popup message to user displays the Listing Number.
4) user enters the Listing Number in the form field and clicks save.
What is the best way to do that?
thanks
PS. yes, I realize mixing server side and client site scripts