PDA

View Full Version : Form Troubles


gotalka
03-08-2003, 04:34 PM
Hi, I'm new to HR and haven't even repointed my domain yet. I'm having some trouble getting my froms to work. Any help is greatly appreciated.

Excuse my ignorance, but how can I change these variables ($mailprog, @referers, @recipients), when the script resides on HR server out of my reach? I've read alot of these forums and can't seem to find the answer.

Also, shouldn't a basic Front Page form work? All I want to do is collect contact information from potential customers and have it emailed to myself. I've tried it to no avail. I am redirected to my confirmation page, but never get the info in my email.

Thanks for any advice you can give!

- John

don5408
03-08-2003, 06:06 PM
"Excuse my ignorance, but how can I change these variables ($mailprog, @referers, @recipients), when the script resides on HR server out of my reach?"

Hi. The short answer to that is you don't (you don't have to).

You have two options as far as FormMail:

(1) You can use the FormMail script HostRocket has available on all servers in the cgi-sys directory. With this option you don't have to edit any files, change any variables or upload anything to cgi-bin (HR has already preconfigured the script so that only domains on their server can be recipients), *all* you have to do is to upload your form.

or

(2) You can upload your own local FormMail script to your cgi-bin directory and use that instead. This would require you to get involved with modifying the script variables, uploading the script and changing it's permissions to make it executible.

The choice is yours however personally I'd tend to keep it simple by going with what's behind 'door (1)'. The only situations in which option (2) would be necessary or desirable would be if (a) for some reason HR's script on that particular server wasn't functioning as designed or (b) if one plans on customizing the FormMail script in some way (i.e. modifying code other than the standard variables).

"Also, shouldn't a basic Front Page form work?"

Well I'm not familiar with Front Page however I would think that it *should* provided the form references a valid working FormMail script and has a @yourdomain.com address in the recipient field.

For starters just as a test why don't you try this example of the simplest possible form. Upload this as is changing only the recipient address and see if you get the output via email.

<form action="/cgi-sys/FormMail.pl" method="POST">
<input type="hidden" name="recipient" value="you@domain.com">
Enter Anything: <input type="text" name="sometext">
<input type="submit" name="Submit" value="Submit">
</form>

If that doesn't work you may want to either submit a trouble ticket on this or just wait until your domain resolves to your HR account and try again (I'm not certain that the fact that you have yet to change your name servers to point your domain to HR's servers is an issue, however I can't say for sure that it *isn't* either).

Best of luck!
Don

gotalka
03-08-2003, 07:07 PM
THANK YOU!
I think I have it figured out now. I wasn't getting the mail because I haven't repointed my name server yet. I found all my test runs when I went into webmail "squirrel mail" from my control panel. I though that since I hadn't re-pointed yet, the mail would go to the mail server on my old (or current, depending on how you look at it) host. I was wrong. Funny thing is, the forms were working all along. I just wasn't looking for the mail at the right place!

Thanks again for your reply! You seem to be "da man" when it comes to these issues.

-John

don5408
03-08-2003, 08:25 PM
"THANK YOU! ...I found all my test runs when I went into webmail"

Excellent, happy to hear it!
(and you're welcome)

"I though that since I hadn't re-pointed yet, the mail would go to the mail server on my old (or current, depending on how you look at it) host."

ahhh...sorry, I didn't pick up on that from your post. While I couldn't quite put my finger on it I did have a notion that the "haven't even repointed my domain yet" was somehow a factor but I didn't catch on that you were expecting the emailed output at your other web host and not HR. Oh, well... ;-)

Enjoy!
Don