While I agree that printing the sequence number you're going to use on a user form is probably somewhat of a misguided idea, there are many times when it does work better to grab the sequence by hand before inserting.
One common reason for this is to make it simpler to insert data into related tables. Let's say that we have tables a and b, and table a has an auto-incrementing field we'll use as a reference in the b table. In that case, it may be faster and simpler to just grab the nextval, and insert it by hand. In most databases, sequences are the one thing that doesn't roll back, and they tend to have behaviour that at first appears odd in a transactional system, but they make sense in the greater idea of why sequences exist.
So, the procedure is something like this (php pseudo code)
insert into a (nom, plume) values ('$nom','$plume');
$seq = "select currval('seq');
insert into b (book, publisher, id) values ('$book','$pub',$seq);
On most databases, the currentval will remain the same even if another transaction has incremented the counter when you're within a transaction, since the current value for this transaction is what we're probably after.