frontpage form copied from page not working (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


d a v e -> frontpage form copied from page not working (12/21/2006 13:34:54)

i copied the code for a frontpage form into a new template that i made in dreamweaver, checked the code and made it look exactly the same as the fp page but saved it as a different file name and changed the webbot bit to my email not the clients. anyway id din't work for the client and now doesn't work using my email address (i assume the original page works ...)

the original page is here http://encinosmiledr.com/contact.htm

my attempt is here http://encinosmiledr.com/contact_new.htm

obviously i'm editing in dw the closing the file, opening the site in fp and publishing changes: this has worked fine for other, non-form pages but now it's misbehaving. help! [&o]





rubyaim -> RE: frontpage form copied from page not working (12/21/2006 16:59:30)

Hi Dave, I copied your form and worked live on the server - got it to work fine - below is what worked here:

Start of the form:
<form action="--WEBBOT-SELF--" method="POST"><!--webbot bot="SaveResults" S-Email-Format="TEXT/PRE" S-Email-Address="someone@example.com" B-Email-Label-Fields="TRUE" S-Builtin-Fields U-Confirmation-Url="confirmationpage.htm" -->


End of the form (removed the link):
<p>
<input tabindex="8" type="submit" value="Click Here for an Appointment" name="click_here_for_an_appointment">	
<input tabindex="9" type="reset" value="Start Over" name="reset">
</p>
</form>




d a v e -> RE: frontpage form copied from page not working (12/22/2006 12:49:48)

you mean you got an email sent to you with the form results?!

client said later tonight that everytime he modified the page his GWD (his host, i think) had to reset something (reinstall extensions perhaps??) seems a bit weird maybe but would explain why it works for you and not for me because the extensions on broken on our server (but peachy on yours)

does this make sense ? i'm a fair bit of a fronptage newbie ;)




Tailslide -> RE: frontpage form copied from page not working (12/22/2006 13:02:50)

Dave - is there a reason why you're using FP to do the form? Why not just do a normal form - If the client wants to edit the site using FP - they're unlikely to edit the form surely?




d a v e -> RE: frontpage form copied from page not working (12/22/2006 15:07:27)

i'm just moving their old content into my template (done in DW) and, er, i'm not very up with forms! [:)] just wanted to get it working and out of the way.
oh apparently "And yes, I think they have to play with the FP extensions every time I fix the contact page." not sure why this would be but do you think i should just redo the form without FP - it sis quite simple but i've never done form handling before ... (really?!!! eek) if you recommend redoing the form and could point me to a simple resource i'm pretty sure i could suss it out,
though:
- not sure whether host supports php or ... how do i find out?
- if they do and i need e.g. a php extensions on the page do i have to recalcualte all hyperlinks in fp??

thanks





Tailslide -> RE: frontpage form copied from page not working (12/22/2006 15:26:43)

If you check which server type you've got via the FF web developer toolbar (information > response headers) you'll find out if it's IIS or apache or whatever. I reckon a very very high percentage of hosts offer PHP so you'd have to be unlucky not to have it.

For forms I use the NMS version of FormMail - http://nms-cgi.sourceforge.net/scripts.shtml It's secure and pretty easy to use. All you do is unzip the file, add in the various bits such as email address for the email to go to, the domain name, the IP address and the path to the stylesheet if you want to tart up the error page. You need to change the first setting to 1 from 0 which is for testing (might be the other way around) then upload it to the cgi-bin on the web server. Change the CHMOD to 755 and add the hidden fields to the form. The rest of the form is unchanged - whatever fields you had before.

That's it.

It doesn't need a PHP extension or anything like that.

If you get stuck I can send you an example or two of forms I've done if that's any help (including the formmail.tpl file so you can see a "real" version).




d a v e -> RE: frontpage form copied from page not working (12/22/2006 15:43:48)

i'll try that out and get back in a few days and let you know how it worked out

thanks :)




rubyaim -> RE: frontpage form copied from page not working (12/22/2006 16:21:43)

quote:

- if they do and i need e.g. a php extensions on the page do i have to recalcualte all hyperlinks in fp??


Hi Dave, if you go to a PHP form (I would in this case given it's on 'nix and the extensions are a problem), then there is probably no need to open the site in FP at all - you can stick with DW.

Is there anything else on the site using FP widgets?




Tailslide -> RE: frontpage form copied from page not working (12/22/2006 16:35:32)

I forgot to mention that the nms formmail is perl so it's independent of php or asp and should work on any type of server.




rubyaim -> RE: frontpage form copied from page not working (12/22/2006 17:21:31)

quote:

is perl so it's independent of php or asp and should work on any type of server.


But does it have to be set up on the Server initially?

I know I can't use Perl on our IIS - the head server guy does not want to set it up (not that I care as I use asp or FP forms, but am now wondering if he was just telling me that [&:] ).




Tailslide -> RE: frontpage form copied from page not working (12/22/2006 17:27:56)

You mean Perl? I guess so. I've not come across an occasion where it's not set up - but that doesn't mean that all servers have it. I remember that it can certainly run on IIS. They've got a massive FAQ there (sourcefourge type thing) so it must be covered in there somewhere!




rubyaim -> RE: frontpage form copied from page not working (12/22/2006 17:33:46)

Sorry, yes - I did mean Perl. I remember wanting to play with it at some stage at work and being told 'no way' [8|]

Wonder if it would work on localhost? I'll look around, that will give me something to do over the holidays to get away from the hoards of kids visiting (sorry, Mummy has to work for a couple of hours - Daddy will take you all to the beach) [:D]




d a v e -> RE: frontpage form copied from page not working (12/27/2006 7:08:51)

where's the cgi bin on the server? in fp i don't see it in any of the folders, or is it hidden by default?




jaybee -> RE: frontpage form copied from page not working (12/27/2006 7:24:42)

cgi-bin is a folder on the host, you won't see it in FP. You might see it if you go into the File Manager on your control panel.

Depends how they have your account set up as to where it'll be. One of my hosts has it in the root another has it outside of the root.




Tailslide -> RE: frontpage form copied from page not working (12/27/2006 8:36:06)

I access the web server via an FTP programme - the cgi-bin is usually inside the public_html folder but as Jaybee says can sometimes be higher up.




caz -> RE: frontpage form copied from page not working (12/27/2006 10:20:16)

You can test for the availablility of PHP on the server by using jaybee's test page,

http://www.frontpagewebmaster.com/m-343727/key-php%252Ctest/tm.htm#343765

If that works then use Mike Cherim's secure form. This worked for me on a Windows server, but then the admin's there don't have to reset extensions to change FP forms all the time. It could be a permissions setting at the moment though.[;)]

Goes without saying that you have to FTP the form set up and not Publish...




d a v e -> RE: frontpage form copied from page not working (1/13/2007 15:57:17)

with tail's help i've used 'her' perl form and now got my test form working. just working on the real thing now ;) thanks all




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375