|
#1
|
|||
|
|||
|
Online Forms
Hi all! I'm using NetObjects Fusion 7. What is the easiest way to set up an online form visitors can fill out, submit, then get sent to a page where it displays all the info they put in so they can print it? I'm assuming I'll need to have a cgi-script on the server to do this properly. Thanks in advance!!!!
__________________
"...this is hardly the time to be conjugating temporal verbs in the past impossible never tense!" |
|
#2
|
||||
|
||||
|
submit to where?
If you just want an email to you then use the standard formmail script. http://www.scriptarchive.com/formmail.html
__________________
Cheers, Degs Please post back with your results CTH Terms of Use CTH Subscriptions :: Adaware Guide :: HijackThis |
|
#3
|
||||
|
||||
|
Check to see what your host offers first. form mail is available with some hosts. You do not need cgi. You can also do it in php. Check out the following for both types of scripts. http://www.cgi-resources.com/Program...rm_Processing/
For help in creating the actual form see http://www.mtholyoke.edu/help/creati.../webmail.shtml http://www.bignosebird.com/formls1.shtml Me, I cheat, I use the php and the services of cgi2k.com - I usually do not have time to mess with creating forms.
__________________
Dan Registered Linux User #382181 - Don't be irreplaceable; if you can't be replaced, you can't be promoted. posting tips - cth tos - how to post hijackthis log |
|
#4
|
|||
|
|||
|
Well, I have FormMail set up right (I think) but online when I try the submit button I get "Error 405 Method Not Allowed
The requested method POST is not allowed for the URL /members/html/test_registration.html" where test_registration is the page name I have the form on. Any ideas what this could mean? I CHMODed the formmail script and test_registration to read/write/execute. Any ideas?
__________________
"...this is hardly the time to be conjugating temporal verbs in the past impossible never tense!" |
|
#5
|
|||
|
|||
|
Apparently you can sometimes get that error if you need to rename the .pl script to .cgi
__________________
Don't forget to post back with the results |
|
#6
|
|||
|
|||
|
I renamed it to .cgi and I still get the same problem. Weird thing is that if I make a simple form in Notepad, save it as html, upload, and try it, it works perfectly! I must be doing something wrong with the form creation in Fusion. Here's what I have for code in case it helps (I took out superfluous code):
<TR VALIGN=TOP ALIGN=LEFT> <TD HEIGHT=380></TD> <TD WIDTH=493> <FORM NAME="LayoutRegion1FORM" ACTION="" METHOD=POST> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=216 NOF="LayoutRegion1"> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=10 HEIGHT=22><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=10 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=3><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=3 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=1><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=1><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=2><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=2><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=68><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=68 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=8><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=8 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=36><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=36 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=24><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=24 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=2><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=1><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=4><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=4 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=9><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=9 HEIGHT=1 BORDER=0 ALT=""></TD> <TD WIDTH=5><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=5 HEIGHT=1 BORDER=0 ALT=""></TD> <TD></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD HEIGHT=22></TD> <TD COLSPAN=12 WIDTH=152><input type=hidden name="recipient" value="admin@lqpvstudentcouncil.org"> <form action="http://lqpvstudentcouncil.org/cgi-sys/FormMail.cgi" method=post><INPUT ID="Forms Edit Field1" TYPE=TEXT NAME="name" VALUE="" SIZE=19 MAXLENGTH=19></TD> <TD COLSPAN=3></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=16 HEIGHT=16></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=2 HEIGHT=22></TD> <TD COLSPAN=9 WIDTH=144><INPUT ID="Forms Edit Field2" TYPE=TEXT NAME="address1" VALUE="" SIZE=18 MAXLENGTH=18></TD> <TD COLSPAN=5></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=16 HEIGHT=2></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=22></TD> <TD COLSPAN=9 WIDTH=144><INPUT ID="Forms Edit Field3" TYPE=TEXT NAME="address2" VALUE="" SIZE=18 MAXLENGTH=18></TD> <TD COLSPAN=4></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=16 HEIGHT=23></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=6 HEIGHT=1></TD> <TD COLSPAN=3 ROWSPAN=3 WIDTH=112><INPUT ID="Forms Edit Field4" TYPE=TEXT NAME="city" VALUE="" SIZE=14 MAXLENGTH=14></TD> <TD COLSPAN=7></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=6 HEIGHT=1></TD> <TD></TD> <TD COLSPAN=4 ROWSPAN=3 WIDTH=16><INPUT ID="Forms Edit Field5" TYPE=TEXT NAME="state" VALUE="" SIZE=2 MAXLENGTH=2></TD> <TD COLSPAN=2></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=6 HEIGHT=20></TD> <TD></TD> <TD></TD> <TD ROWSPAN=3 WIDTH=40><INPUT ID="Forms Edit Field6" TYPE=TEXT NAME="zip" VALUE="" SIZE=5 MAXLENGTH=5></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=10 HEIGHT=1></TD> <TD></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=15 HEIGHT=1></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=16 HEIGHT=14></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=4 HEIGHT=22></TD> <TD COLSPAN=4 WIDTH=80><INPUT ID="Forms Edit Field7" TYPE=TEXT NAME="phone" VALUE="" SIZE=10 MAXLENGTH=12></TD> <TD COLSPAN=8></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=16 HEIGHT=25></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=5 HEIGHT=24></TD> <TD COLSPAN=2 WIDTH=70><INPUT TYPE=SUBMIT NAME="submit2" VALUE="Submit" ID="Forms Button1"></TD> <TD COLSPAN=9></TD> </TR> </TABLE> </FORM> </TD> </TR> </TABLE> </TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=26 HEIGHT=32><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD> <TD></TD> </TR>
__________________
"...this is hardly the time to be conjugating temporal verbs in the past impossible never tense!" |
|
#7
|
|||
|
|||
|
I'm a bit confused as to why you have two seperate forms, with the first not having an action associated with it
__________________
Don't forget to post back with the results |
|
#8
|
||||
|
||||
|
Try using a relative path to the script rather than absolute
http://lqpvstudentcouncil.org/cgi-sys/FormMail.cgi ../FormMail.cgi
__________________
Cheers, Degs Please post back with your results CTH Terms of Use CTH Subscriptions :: Adaware Guide :: HijackThis |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 09:35 PM.
[
RSS ]








