Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

web form problem

Featured Replies

Hello,

 

I am relatively proficient with writing HTML but know absolutely nothing about any server side scripting. I have created a simple form where users input text only details and then they click submit. What to I need to do to make this info be sent to my email inbox? Please remember i know nothing other than HTML so I need real simple discriptions of what to do!!!

 

I have attached my html file...

 

Hope you can help

 

thanks

 

Dan

form.htm

one of the members Jem add this link to his php mail form

here you go :

http://www.jemjabell...e-php-mail-form

 

 

 

//edit
Its your lucky day :
1st of all you must add name="" parameter to all fields
2nd i dont see field called "email" so i set in php that field "from" in email will be Company Name that send you this form.
3rd create validation
4th edit in php file
$pfw_subject = "THIS IS MAIL SUBJECT";
$pfw_email_to = "your_email_adress@something.com";

 

 

have a nice day

form.php

form.htm

Edited by Sam G
added [code] tags

  • Author
one of the members Jem add this link to his php mail form

here you go :

http://www.jemjabell...e-php-mail-form

 

 

 

//edit
Its your lucky day :
1st of all you must add name="" parameter to all fields
2nd i dont see field called "email" so i set in php that field "from" in email will be Company Name that send you this form.
3rd create validation
4th edit in php file
$pfw_subject = "THIS IS MAIL SUBJECT";
$pfw_email_to = "your_email_adress@something.com";

 

 

have a nice day

 

Hi

 

I am not sure what you are saying to do on your 1st and 2nd points - where in my html files am I adding it?

 

I see you attached a .php file - do I simply upload that to the host server having performed all edits? sorry to be a pain but I need it explaining in really really simple terms....

 

Dan

Edited by Sam G
added [code] tags

download mine html file too, then upload those on server and test it, but remember to change

$pfw_subject = "THIS IS MAIL SUBJECT";
$pfw_email_to = "your_email_adress@something.com";

in php file first

Everything shoud be workin.

Edited by Sam G
added [code] tags

  • Author
download mine html file too, then upload those on server and test it, but remember to change

$pfw_subject = "THIS IS MAIL SUBJECT";
$pfw_email_to = "your_email_adress@something.com";

in php file first

Everything shoud be workin.

 

 

Hi,

 

uploaded both files. when I clisk submit it tries to download the PHP file?

 

Dan

Edited by Sam G
added [code] tags

Do you know if you actually have PHP enabled on your server?

  • Author
Hi,

 

uploaded both files. when I clisk submit it tries to download the PHP file?

 

Dan

 

 

as far as I know - yes. I have uploaded and run forums before, will check with the host though.

  • Author
as far as I know - yes. I have uploaded and run forums before, will check with the host though.

 

 

Oh &%^&(* - host only supports perl & cgi.

 

what now???

Or, if you can't wait for them to get back to you, create a phpinfo file *

 

 

 

 

* If you don't know how... it contains just

 

<?php 
 phpinfo();
?>

 

save as something like phpinfo.php and upload. If you can visit it and it displays all sorts of info about PHP in a pretty puple table, you have PHP. Remove the file again afterwards, though.

Quote from other forum - not mine

Well, the most you could do without a server-side script is to send the e-mail using the user's default e-mail client by using the mailto protocol.

getURL("mailto:me@me.com");

If you want to be define the headers (subject, body, cc, etc), the recipient's address must be followed by a question mark (?) and each header must be separated by an ampersand (&).

getURL("mailto:me@me.com?subject=My Subject&body=My Message");

Ooops, crossed posts!

 

I may have a Perl script lying around somewhere... hang on a few minutes.

 

 

UPDATE:

Nope, sorry. It was PHP after all. I have a standard PHP one I use and adapt so had it in my head one I inherited from someone else's site was Perl - but it was just a different PHP one with lots of JavaScript verification.

  • Author
Ooops, crossed posts!

 

I may have a Perl script lying around somewhere... hang on a few minutes.

 

 

UPDATE:

Nope, sorry. It was PHP after all. I have a standard PHP one I use and adapt so had it in my head one I inherited from someone else's site was Perl - but it was just a different PHP one with lots of JavaScript verification.

 

 

I have been using "mailto:" until now but I need specific info capturing as per the original attached file.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.