Jump to content

Recommended Posts

Posted

For php you should visit www.php.net and www.phpfreaks.com

 

On these two site's you should be able to find everything you need to create these forms and their controling structures.

 

It's a start -_-

Posted

Hi,

 

Looking at the forms you have on your pages, then the code by Surefire should work well.

 

1.) Do PHP forms require a "bin" like CGI files do?
The html for a form looks very similar whether you are using cgi or php to do the "action" bit. The php code sits on the server, and can sit in whatever folder you like - I set up a "scripts" folder which is like the cgi "bin" but you don't have to.

 

2.) Does one have to do some special coding for things that go on the host side as well as generate the code for the form that I design in Dreamweaver formy htm pages.

Yes, basically the php is the code that goes on the host side, which you link to from your html in Dreamweaver. Dreamweaever handles php very well in my opinion.

 

3.) Will the new pages I create using the PHP script have to end in.php? If so, can anyone with any web browser access and interact with these pages?
The html page with the form on it can still be html. The code which is the script will need to be .php. The code is run on the server, and it then generates html for the browser, so it is compatibale with any browser.

 

In your current html you will need to change the line

action="http://www.indiemanagers.com/cgi-bin/FormMail.pl">
to point to the php file and you will not need most of the "hidden" fields.

 

I hope that helps, keep asking the questions as you go through each step :D

 

Andy

 

Ask away with questions

Posted

It is trying to get the document from a directory called form. If you have all your form-mail documents in the same directory then you can delete "/form" and leave the mailit.php like this:

 

<form action="mailit.php" method="post" enctype="multipart/form-data" name="form1">

 

Hope that helps...

Posted (edited)

webgyrl

 

In your php file you have the check that it is your site, and you have the IP address as '66.11.164.208' which needs changing to '64.246.56.60' otherwise the script is trying to protect you from your site being used to send spam, sucessfully :unsure: and hence stopping you sending any mail :( .

 

Once you have correct that error, the next one is the file which you redirect to (after filling in the form) is http://www.indiemanagers.com/membership_pay.htm which doesn't seem to exist.

 

Change that though and I think it will be getting close :blink:

 

Andy

Edited by AndyB
Posted

I downloaded the form script set everything up and tried it. Got the Thank You page,notified by email,Thank you for submitting to other email. Everything works.

So, only one question. Where does it send the uploaded file?

 

curtis

Posted

Never mind,Got it. Great script. I'm just learning PHP and the detailed instructions were a great help.

Thanks Thumbs Up

 

curtis

Posted

I see my script is getting some use and some good reviews.

 

I found a small bug (most of you will not encounter difficulties) and I'll fix it as soon as I'm back from the 4th of July.

Posted

My first instinct was to agree that it was an issue of propagation. The problem is I could see your site fine and was getting the same error when trying to access the manual.

 

Your Dreamweaver set up is also fine so I knew that couldn't be the problem.

 

I did a little experimenting and found that if I created a directory called /manual on my site I got the same error. In looking around a bit more I found that he reason is that /manual is an Alias that will go to the Apache documentation. You will get the same problem if you have a folder called /icons since that is another Alias used by the system.

 

There are a couple of solutions. One is to create a subdomain called manual. You will then be able to access the file by using manual.indiemanagers.com/manual.php (but will still get an error if you use www.indiemanager.com/manual/manual.php.)

 

The other, and easier, option is to rename the folder. You could call it manuals or mymanual or anything else and it will work fine as well.

Posted

Opps, you spotted my post before I had read page 2 and edited it - opps :)

 

The IP address you have as '66.11.164.208' which needs changing to '64.246.56.60'.

 

Andy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...