Hello one and all.

In simple terms Im quite an amateurs, but learning fast. I have just finished making a web email form, and have found a problem.
I need PHP, so I looked at what I made and using the help of a mate (who is quite skilled) we started to write it. For some reason it doesn't work.

Instead of the form going to the success page after submission or the fail page, it shows us the ASP page.

Could someone help please?

I have uploaded the web form along with the asp.


Thank you

We need email.php to help you.

I uploaded the asp file in notepad, sorry but the php file seems to have gone missing.

Your form posts its variables to a .php file. If its gone, it doesn't post to anything.

The PHP file was there, must have been deleted by Danni when it didnt work...


But I have tried it also using that asp file and it did the same thing

What was the ASP file you attached used for?

To do the same as the PHP file.
A website generated a code for me, I looked at it then started to write it for my form.

I was wondering if it was possible to have it written out, so I can see whats where and how its done

can you put the entire site (or just those three files) in a ZIP and attach it for us?

I'd love to help but I can't really from what is presented.
Thanks

Thats what I have got.

To make the web form all you need is the web form itself and the PHP/ASP.

all I need is for someone to help me by either explaining how to or writting the PHP/ASP.

Its not working because if you look at the HTML for the site, it tells the form to pass its variables to email.php

You want it to send it to your new ASP file. Change it there.

Umm.. sending a mail is pretty straight forward in php. mail($to,$subject,$message,$from). You can include user defined text, form fields in $message. Instead of attaching a file, you can put your code in [ c o d e] tags. That would be much easier.
btw, to send a mail, you should configure your smtp first.

I have done that.

I told it to go to the asp file as well.
Still didn't work.

Apparently the problem is in the asp file. I need it to be rewritten...

Just do the thing in PHP. Its s*** easy and open source :)

The problem is im really new to PHP, so I can't really do it... that well.

Thats why I came on here asking for help lol.

Okay I re-wrote the php.

I test it in browser and then type in the info on the form and submit it.

Once I did that it comes up saying error 404 cannot find page.

(even though the php page is there in the address bar)

So is this a good or bad thing

Well, If it says page can't be found, then obviously it is unable to find the page. Check the path of the script.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.