Form Help

Status
Not open for further replies.

kevin79

Ars Scholae Palatinae
1,197
Can someone give me some help. Someone at my work created a form in frontpage, but it doesn't work. It sends them to a page telling them to have the webmaster check the application log. I did this, and I see two errors, I will post links to those tomorrow morning.

Anyhow, here is the start of the form,

://--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="../_vti_bin/shtml.dll/ProjectRequest/NewProjectNumberRequest.htm" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1" webbot-action="--WEBBOT-SELF--">

I can post the whole page if you want me to.

I was thinking of just using a mailto command, but that seems to bring up a warning that it is going to send an email, and I don't want it to do that. Is there a way to use mailto without that warning?

Thanks!
 

SantosLHalper

Ars Scholae Palatinae
1,347
Sorry, this frontpage garbage was not really designed to be edited by a
human. This is nowhere near valid, standard HTML.

That having been said. The "action" attribute of the form element should point to the URL of the page designed to handle it. This does not look at all like a valid path:

"./_vti_bin/shtml.dll/ProjectRequest/NewProjectNumberRequest.htm"

For starters, when can a DLL act as a directory? That is just weird. Aso, that is a relative path, are you sure it is valid? Were the files moved.

This is exactly the reason I never use WYSIWYG html editors. The output is utter shit and the time saved is wasted trying to maintain it later.
 

HitScan

Ars Tribunus Militum
2,523
Subscriptor++
Sigh. If you have never used it, then don't comment on it.

The URLs are all fine. What is that "GeneratedScript" that it's talking about? The default is to save everything to a file under _private. What kind of permissions do you have for that directory? Also, if you want it emailed, the email option should work fine without warning anyone, I use that on our forms here.

HitScan
 

HitScan

Ars Tribunus Militum
2,523
Subscriptor++
Right click on the form and click "Form Properties" to get a dialog box similar to the following:

-- View image here: http://hitscan.freeyellow.com/images/mailform.gif --


You just empty out the top line and fill in the email addr. It's done server-side after they submit, so there's no warnings to close or anything. You have to be sure that the email settings are correct in the server extensions though.


HitScan
 

kevin79

Ars Scholae Palatinae
1,197
Originally posted by HitScan:
Right click on the form and click "Form Properties" to get a dialog box similar to the following:

<img src="http://hitscan.freeyellow.com/images/mailform.gif" />




You just empty out the top line and fill in the email addr. It's done server-side after they submit, so there's no warnings to close or anything. You have to be sure that the email settings are correct in the server extensions though.




HitScan


I've tried that and it still doesn't want to send the email. Any other suggestions??

 

HitScan

Ars Tribunus Militum
2,523
Subscriptor++
Have you checked the email settings on the server? And when you tried that what manner of code did it put in the page? (i.e. it shouldn't say anything about a "GeneratedScript" like it was before. No idea what that was about.) The relavent bits are: "bot="SaveResults" S-Email-Address="blah@blah.blah""

My best guess is that the email settings are askew on the server. Hopefully anyhow.

HitScan
 

kevin79

Ars Scholae Palatinae
1,197
Originally posted by HitScan:
Have you checked the email settings on the server? And when you tried that what manner of code did it put in the page? (i.e. it shouldn't say anything about a "GeneratedScript" like it was before. No idea what that was about.) The relavent bits are: "bot="SaveResults" S-Email-Address="blah@blah.blah""

My best guess is that the email settings are askew on the server. Hopefully anyhow.

HitScan

This is how my mailto was when it was popping up a message asking the user if they wanted to send an email:
<form name="form1" method="post" action="mailto:evertsk">

I'm pretty sure the email on my server is correct, it get's set up through the administration website, right?
 

pelican

Wise, Aged Ars Veteran
184
I think there's a couple of things going on here:

1) No Frontpage Extensions on this server? None of the garbage (yes, I've used it) it makes to do things like this will work, I think that action URL at the top of the page is valid (the whole _vti thing).

2) But if you want this thing emailed FROM THE SERVER, you need a cgi-bin email program or equivalent to do it, right? (Or at least I've always used cgiemail OR a scripting language)

3) The mailto: approach will work, but then it's coming from the client, not the server.

--pelican
 

RojBlake

Ars Legatus Legionis
48,129
Subscriptor
The form is supposed to take the information and email it to an admin assistant and she will assign it a project number. When they hit submit, it should send an email to her and send them to a different page.
The most straightforward way to do the above is a simple 'mailto' command (as in my last post) combined with the relevant redirect page in the 'onsubmit' tag. It should work fine. Why mess around worrying about servers and FP extensions unnecessarily?
 

pelican

Wise, Aged Ars Veteran
184
Why mess around worrying about servers and FP extensions unnecessarily?

This is an excellent point - why bother?

My personal feeling is that quite a few Americans don't have POP or IMAP accounts, and use web-based email only. Or access the interent entirely from a shared computer with no allowance for multiple email users. They're SOL with a mailto:, right?

my $0.02
--pelican
 

pelican

Wise, Aged Ars Veteran
184
hux, Please, allow me to vent:

I agree with your point of view, that it is the easiest way to do it.

And if Americans were more up on the possibilities of getting a POP or IMAP account and how easy and convenient this is, and how much bandwidth they'd save by not checking their email through some f**king horrible service like Yahoo or Hotmail, we wouldn't have to think about stupid crap like this when designing websites. However, we do. :(

my $200,000.02
--pelican
 
Status
Not open for further replies.