Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to rip cgi code from 1 page and plug into another

Status
Not open for further replies.

dirtystim

Technical User
Jul 4, 2001
26
GB
hello ppl
I need to rip the relevant code from the code below, to make it work on this page:
the attached code has all the relevant values and cgi bits (that i totally don't understand!).
My host only has a sort of wizard for feedback forms unless you pay more money. so i gotta rip it from the attached, which i have set up.

Can you pleeeaaassee help me ?
Thank you so so much.

d

======================================
c o d e !
======================================

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<!-- saved from url=(0083) -->
<HTML><HEAD><TITLE>Feedback-Formular</TITLE>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;>
<META content=&quot;MSHTML 5.50.4134.600&quot; name=GENERATOR></HEAD>
<BODY text=#ffffff bgColor=#ffffff>
<FORM action= method=get>
<CENTER>
<TABLE cellSpacing=2 cellPadding=3 border=0>
<TBODY>
<TR>
<TD colSpan=2><FONT face=Arial,helvetica size=+1>Feedback
form<BR></FONT></TD></TR>
<TR>
<TD colSpan=2><FONT face=Arial,helvetica size=-1>Message<BR></FONT></TD></TR>
<TR>
<TD align=right bgColor=#ffffff><FONT face=Arial,helvetica color=#ffffff
size=-1>Your name :</FONT></TD>
<TD bgColor=#336699><INPUT name=name></TD></TR>
<TR>
<TD align=right bgColor=#ffffff><FONT face=Arial,helvetica color=#ffffff
size=-1>Your e-mail address:</FONT></TD>
<TD bgColor=#336699><INPUT name=email></TD></TR>
<TR>
<TD align=right bgColor=#ffffff><FONT face=Arial,helvetica color=#ffffff
size=-1>First name:</FONT></TD>
<TD bgColor=#336699><INPUT name=vorname></TD></TR>
<TR>
<TD align=right bgColor=#ffffff><FONT face=Arial,helvetica color=#ffffff
size=-1>I would like to receive additional information:</FONT></TD>
<TD bgColor=#336699>
<TABLE cellPadding=0 border=0>
<TBODY>
<TR>
<TD><INPUT type=radio value=0 name=info></TD>
<TD><FONT face=Arial,helvetica color=#ffffff size=-1>Please send
additional infomation</FONT></TD>
<TD>  </TD>
<TD><INPUT type=radio value=1 name=info></TD>
<TD><FONT face=Arial,helvetica color=#ffffff size=-1>Do not send any
additional information</FONT></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top align=right bgColor=#ffffff><BR><FONT face=Arial,helvetica
color=#ffffff size=-1>Comments:</FONT></TD>
<TD
bgColor=#336699><TEXTAREA name=comment rows=10 cols=30></TEXTAREA></TD></TR>
<TR>
<TD colSpan=2><FONT face=Arial,helvetica><INPUT type=submit value=Send name=next><INPUT type=reset value=Reset name=next></FONT></TD></TR></TBODY></TABLE></CENTER><INPUT
type=hidden value=3cf270f631b3a4d1200413b5e763ca57 name=clsid> <INPUT
type=hidden value=yes name=doit> </FORM></BODY></HTML>
 
I don't understand the question.... or, maybe, you don't understand the question....
I'm not trying to be insulting..... just trying to get a handle on where you are
and what you are trying to do....

The HTML stuff above is very simple HTML. But, it does nothing if there is not a
program sitting on a server waiting to do what the HTML asks. In the HTML, there
is a <FORM> tag. It looks like,
Code:
<FORM action=&quot;[URL unfurl="true"]http://some_server.com/cgi-bin/program.cgi&quot;[/URL] method=&quot;get&quot;>

When that page is submitted (someone clicks the &quot;Send Mail&quot; button),
that <FORM> tag tells the web server which program to a run. That program would
catch the inputs handed to it by the browser's request and take some action
based on those inputs, eventually shooting a web page back at the browser. So,
Your page at &quot;
Code:
[URL unfurl="true"]http://www.christophernicholson.com/contact.htm[/URL]
&quot; is nearly
ready, except for two things.
1 - your <FORM> tag has no 'action' attribute defined.
2 - once your <FORM> tag does have the 'action' attribute defined, it does
not appear likely that the program exists on the server to respond to the
request.

You might benefit from looking at faq452-653. It goes over some of the basic
CGI stuff with some examples.

HTH
If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
 
I totally got lost after the first bit of html. :(

I don't get the syntax at all.

I have tried copying across into my page both the form values and the action and hidden values from the feedback page created by the hoster.

Now when you do it the guy is getting the info, but it's still acting a little strange.

yesterday it'd take you to the actual existence of the feedback formula page, where i would press send again just in case.
the sender (me) of the mail gets a weird attachment that I can't ope called attach1 it doesn't appear to have a file type!!!! and it's 420 kb!! What the heck is this???

Now it just goes to a blank page.
I need it to spawn a simple alert saying 'your comments have been sent' or something.

the somewhat updatd page is here:



I really appreciate any help.

d
 
I'm still trying to get the lay-of-the-land. You
imply that the CGI program exists on
the server and sends an email when your HTML is submitted.
-
Code:
&quot;[URL unfurl="true"]http://cgi01.oneandone.co.uk/cgi-bin/fb_form&quot;[/URL]

You have to coordinate the names of the inputs in
your HTML with the expected inputs for the CGI program.
The inputs must be named correctly and be of the correct
type (textbox, textarea, radio, etc....). It sounds to me
like you lack this coordination between your HTML input
and the expected inputs from the CGI program's perspective.

Who wrote 'fb_form'?
They should be able to supply you with some specifications
for how 'fb_form' expects to be fed and what it will produce. It is appearently producing an attachment that you are not asking for. Is 'fg_form' intended for generic mail generation use?

HTH If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top