No, just pass the variables back to the add.cgi and send them back out.
Use a proceedure such as "do=page2", "do=page3"...., "do=review" to tell the script what to do next.
Unfortunately, this will not solve your problem, since you can pass all the variables to the add.cgi at once at any time.
You'd have to do something like check referrers, to make sure you are getting the pages from your own site, or not pass the variables back to each form, but store them in a "session" on the server.
This still won't solve the problem completely, since a robot could submit the forms in 3 pages, just as easily as in one.
The only way to make it really annoying for a robot developer would be to have 3 or 4 pages, that asked for information in random fashion, and used variable tags. For instance, create a session for that user, and generate random fields for each of the expected tags.
Name => esksure,
URL => sarenve,
Then, in the form,
Name: <input name="esksure" value="" size="40">
URL: <input name="sarenve" value="" size="40">
And, you need to randomize what tags appear on what form as well.
It's much harder for a robot to pick out the text tag "Name:" and hit the right input box, than it is to find a tag with the name="value" in it. You are not giving it anything to latch on to. For a search engine like "yahoo" it would pay to develop complex support, but for most other sites, it's too complicated, and the benefits are too small.
Are you following?? <G>
Of course, this depends on how badly you don't want automatic submissions to your site, but I do plan to implement something like this on a couple of sites where the topics are sort of "prime" for spam.
http://www.postcards.com FAQ:
http://www.postcards.com/FAQ/LinkSQL/