I have a form that lets users create new records,
In the field that is the id that auto-increments i want the user to see the record number that this record is by somehow showing latest value+1 in the fields value.I was thinking of something like: \[code\]<input type="text" value="http://stackoverflow.com/questions/1995289/<?php echo $myQuery['recordId'].length+1"/> \[/code\]But that doesn't work.Again, this is only to get the default value in the \[code\]<input>\[/code\]Instead of having to look up the last id, And this form is only used by one admin.
In the field that is the id that auto-increments i want the user to see the record number that this record is by somehow showing latest value+1 in the fields value.I was thinking of something like: \[code\]<input type="text" value="http://stackoverflow.com/questions/1995289/<?php echo $myQuery['recordId'].length+1"/> \[/code\]But that doesn't work.Again, this is only to get the default value in the \[code\]<input>\[/code\]Instead of having to look up the last id, And this form is only used by one admin.