Skip to main content
smartCode
Known Participant
May 24, 2013
Answered

Re: Submiting a webform via the submit button of a webpage.

  • May 24, 2013
  • 2 replies
  • 5234 views

Hi Folks,

I need some help on the contact page of my website, so that users can fill-out a form with their names, email addresses, and type a brief message

in the message box, and submit the form via the submit button.

Any suggestions with the full javascript code or php to submit the page.

Please help.

Thanks.

This topic has been closed for replies.
Correct answer bregent

Hi Bregent, please let me know when you have a solution or any suggestion to the problem whether now or in the future, I have clicked on the 'helpful link' for you to get your points, I really appreciate your help.

Thanx a lot.


Your form contains php code and is on an .hmtl page. Unless you have specifically modified your server, pages with php need to have a .php extension. Change http://www.simpsys.co.uk/customer_services.html to http://www.simpsys.co.uk/customer_services.php and see if that works any better.

2 replies

smartCode
smartCodeAuthor
Known Participant
May 28, 2013

Hi bregent,

Thanks for your reply, yes my host provides a formail script - but that seems not to be the problem, I think the problem is with the 'php script' itself, I need to insert a php or javascript that handles 'formmail', inside the html file, I dont have any yet, but I have created the html file with all the correct coding inside it, all I need now is the php script. Can you help.

Thanks.

Participating Frequently
May 28, 2013

Sorry, I don't understand what you are saying. What problem is with the 'php script itself'.  Have you tried implementing the hosts solution? Are you getting an error message? What are the symptoms? Who is the host and have you read their instructions for implementing their php formmail script?

smartCode
smartCodeAuthor
Known Participant
June 21, 2013

Hi Bregent,

What I posted is the complete contact page of the website, after testing it, with the instructions you gave me earlier, to remove the duplicate form code, and to match the form fields "names" exactly.  The complete code from the html page, with the php "form mail script" embedded in it, is what you have already with you, the only difference is that I have removed the duplicate form.

I thought this might help, to let you know that when I hit the submit button, It sends, while sending, an "Error 404" message flashes for a few seconds, and that's all it says, nothing else.  What I noticed is that, the code showing at the top of the contact page, is part of the php code embedded in the html.  Appreciate your help.

This is a link to the site. http://www.simpsys.co.uk


Hi Bregent, please let me know when you have a solution or any suggestion to the problem whether now or in the future, I have clicked on the 'helpful link' for you to get your points, I really appreciate your help.

Thanx a lot.

Participating Frequently
May 24, 2013

Start by checking with your host to see if they provide a formail script - many do. If they don't, a search on the web for 'php formmail script' should give you some ideas.