Has anyone done the add confirmation for non-templates. I have the mod for the template version but have no idea on how to convert it. TIA!
Oct 3, 2000, 6:12 PM
Veteran (17240 posts)
Oct 3, 2000, 6:12 PM
Post #2 of 15
Views: 2710
You edit the codes in the sub site_html_add and sub site_html_add_failure in the site_html.pl file. And to add the confirmation page, you add a subroutine called sub site_html_add_confirm.
You do not have to define tags as written in the Mod instructions. Simply change the name of the submit button codes in the above mentioned subroutines and also add hidden fields in the sub site_html_add_confirm routine.
Regards,
Eliot Lee
You do not have to define tags as written in the Mod instructions. Simply change the name of the submit button codes in the above mentioned subroutines and also add hidden fields in the sub site_html_add_confirm routine.
Regards,
Eliot Lee
Oct 3, 2000, 7:00 PM
Veteran (17240 posts)
Oct 3, 2000, 7:00 PM
Post #4 of 15
Views: 2706
Code:
<input type="submit" name="process_form" value="Submit">
to the following:
Code:
<input type="submit" name="send_form" value="Preview Submission">
Uh...the site_html.pl file where the other add subroutines are located.
Regards,
Eliot Lee
Oct 3, 2000, 7:18 PM
User (117 posts)
Oct 3, 2000, 7:18 PM
Post #5 of 15
Views: 2704
You said "And to add the confirmation page, you add a subroutine called sub site_html_add_confirm."
I said "Where do I get this sub-routine."
You said "Uh...the site_html.pl file where the other add subroutines are located"
I can't find any sub site_html_add_confirm in site_html.pl
I said "Where do I get this sub-routine."
You said "Uh...the site_html.pl file where the other add subroutines are located"
I can't find any sub site_html_add_confirm in site_html.pl
Oct 3, 2000, 7:32 PM
Veteran (17240 posts)
Oct 3, 2000, 7:32 PM
Post #6 of 15
Views: 2701
RIGHT...you ADD the sub site_html_add_confirm sub-routine which is used to show the confirmation page. You add the form codes as you have in the sub site_html_add_form routine EXCEPT you use HIDDEN fields rather than TEXT and TEXTAREA fields.
Why aren't you using templates? They are a lot more flexible and easier to use...
Regards,
Eliot Lee
Why aren't you using templates? They are a lot more flexible and easier to use...
Regards,
Eliot Lee
Oct 3, 2000, 7:53 PM
User (117 posts)
Oct 3, 2000, 7:53 PM
Post #7 of 15
Views: 2697
Let's see if I got this right. In sub site_html_add_form and and sub site_html_add_failure I change <INPUT TYPE="SUBMIT" VALUE="Click to Submit"> to <input type="submit" name="send_form" value="Preview Submission">
then I duplicate sub site_html_add_form and rename it to sub site_html_add_confirm and change the TEXT and TEXTAREA fields to hidden fields.
Is this right? If so, I did try it but it submitted as usual. How is the site_html_add_confirm sub called?
Thanks.
then I duplicate sub site_html_add_form and rename it to sub site_html_add_confirm and change the TEXT and TEXTAREA fields to hidden fields.
Is this right? If so, I did try it but it submitted as usual. How is the site_html_add_confirm sub called?
Thanks.
Oct 3, 2000, 8:14 PM
Veteran (17240 posts)
Oct 3, 2000, 8:14 PM
Post #8 of 15
Views: 2702
Right...but as I mentioned before, I believe, you need to use the following submit button in your sub site_html_add_confirm routine:
<input type="submit" name="process_form" value="Submit Form">
HAVE you edited the add.cgi file? If so, you should a reference to the sub in your edited add.cgi file. It is called when a clean submission (with no errors) is sent to your server.
Regards,
Eliot Lee
Code:
<input type="submit" name="process_form" value="Submit Form">
HAVE you edited the add.cgi file? If so, you should a reference to the sub in your edited add.cgi file. It is called when a clean submission (with no errors) is sent to your server.
Regards,
Eliot Lee
Oct 3, 2000, 9:21 PM
User (117 posts)
Oct 3, 2000, 9:21 PM
Post #11 of 15
Views: 2701
For anyone else that requires this mod here is a summary:
1. Replace your add.cgi with the one that comes with addconfirm.zip (http://www.asan.com/...oenix/addconfirm.zip).
2. Duplicate the sub site_html_add_form section of site_html.pl (copy and paste it below).
3. Change (rename sub) where it says "sub site_html_add_form" to "sub site_html_add_confirm".
4. In the sub site_html_add_form section change <INPUT TYPE="SUBMIT" VALUE="Click to Submit"> to <input type="submit" name="process_form" value="Submit">
5. In the sub site_html_add_confirm section change the input text and text area fields to hidden fields. For example, change <INPUT NAME="Title" VALUE="$in{'Title'}" SIZE=30> to <INPUT TYPE="hidden" NAME="Title" VALUE="$in{'Title'}">$in{'Title'}.
That's it!
1. Replace your add.cgi with the one that comes with addconfirm.zip (http://www.asan.com/...oenix/addconfirm.zip).
2. Duplicate the sub site_html_add_form section of site_html.pl (copy and paste it below).
3. Change (rename sub) where it says "sub site_html_add_form" to "sub site_html_add_confirm".
4. In the sub site_html_add_form section change <INPUT TYPE="SUBMIT" VALUE="Click to Submit"> to <input type="submit" name="process_form" value="Submit">
5. In the sub site_html_add_confirm section change the input text and text area fields to hidden fields. For example, change <INPUT NAME="Title" VALUE="$in{'Title'}" SIZE=30> to <INPUT TYPE="hidden" NAME="Title" VALUE="$in{'Title'}">$in{'Title'}.
That's it!