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.

can i do this?

Featured Replies

Okay, basically what im thinking of doing is making a page where users click on an image, then they are taken to another page where they can enter some text in a field plus some personal info, and this is then sent to my email address.

 

basically this process goes on:

1: users visits the page

2: user clicks on 1 of 3 images

3: the users selection is stored

4: the user is taken to the next page, where he must enter some details such as email and name etc...

5: this info is sent to my email and then the user is taken to a thank you page

 

if anyone can help me with this it would be pretty amazing as im struggling.

 

Thanks.

That actually doesn't sound complicated at all, but accomplishing the task depends on what skills and resources you have available to you.

 

For example, this could easily be designed with a server-side language like PHP to accomplish the mailing / form portion of the project. If your knowledge is limited to only html/css/js, that may be a problem though.

 

Assuming you do know php, there is a pretty simple mail() function available (provided the server is configured correctly) to you and other tools if it doesn't satisfy your needs:

 

http://stackoverflow.com/questions/3874918/send-php-email-with-out-mail-function

 

If a language like PHP is foreign to you, then you may have to rely on some other obscure means to accomplish this project. I admit, I haven't the slightest idea of how you would.

Edited by Pete Prosper

  • Author

That actually doesn't sound complicated at all, but accomplishing the task depends on what skills and resources you have available to you.

 

For example, this could easily be designed with a server-side language like PHP to accomplish the mailing / form portion of the project. If your knowledge is limited to only html/css/js, that may be a problem though.

 

Assuming you do know php, there is a pretty simple mail() function available (provided the server is configured correctly) to you and other tools if it doesn't satisfy your needs:

 

http://stackoverflow.com/questions/3874918/send-php-email-with-out-mail-function

 

If a language like PHP is foreign to you, then you may have to rely on some other obscure means to accomplish this project. I admit, I haven't the slightest idea of how you would.

can what im doing be achieved with html and css only? or do i have to have php too? i know some php, but wouldnt be able to write my own code for this.

can what im doing be achieved with html and css only? or do i have to have php too? i know some php, but wouldnt be able to write my own code for this.

 

Unfortunately, no. HTML and CSS would only bring you halfway in that they would allow you to establish your forms, but there's no way to properly process that information....... well

 

Well what I stated above is half correct. You could use "mailto" in an html form (and you wouldn't need a language like php)...... but I seriously wouldn't suggest that you do. It requires actually hardcoding your email address into your html file which can cause issues. Nevertheless, read the following (the first especially):

 

http://stackoverflow.com/questions/8239782/how-to-create-an-email-form-that-can-send-email-using-html

 

http://www.w3schools.com/html/html_links.asp (some mailto examples on this page for use with links)

 

http://www.w3schools.com/html/html_forms.asp (links on bottom with mailto examples for use with forms).

 

 

I honestly don't believe you'll find mailto as a viable solution.

 

Regards.

Edited by Pete Prosper

Aside from the above links that Pete has provided you with and busting out the books to improve on your PHP skills, if you are in need of getting a quick fix - without the benefit of learning to do it for yourself (juggling new conventions you aren't used to is a challenge to say the least), you might want to have a look if there are any scripts already written that meet your needs. For example you can check out http://codecanyon.net/category/php-scripts. The prices can be reasonable, but it's not going to help you learn how to do it.

 

Judging from your previous posts, you seem eager to get things done swiftly so it might be a viable option. That is, unless there is a PHP wizard reading this now who can help you out directly :) Alas, I am a boy scout in that field.

  • Author

Unfortunately, no. HTML and CSS would only bring you halfway in that they would allow you to establish your forms, but there's no way to properly process that information....... well

 

Well what I stated above is half correct. You could use "mailto" in an html form (and you wouldn't need a language like php)...... but I seriously wouldn't suggest that you do. It requires actually hardcoding your email address into your html file which can cause issues. Nevertheless, read the following (the first especially):

 

http://stackoverflow.com/questions/8239782/how-to-create-an-email-form-that-can-send-email-using-html

 

http://www.w3schools.com/html/html_links.asp (some mailto examples on this page for use with links)

 

http://www.w3schools.com/html/html_forms.asp (links on bottom with mailto examples for use with forms).

 

 

I honestly don't believe you'll find mailto as a viable solution.

 

Regards.

Thanks for your reply, lets assume that i know php, how would this be possible? is there any tutorials for something like this? could i get a normal contact us form and change it a little to achieve this? id appreciate if you can give a little more details into this please.

 

Thanks.

Assuming you know php, this is easily accomplished.

 

3: the users selection is stored - set up the link so that the url to the linked page includes the id of the image e.g.

<a href="example.php?imageId=x"> <img src="imagefile.ext" /></a>

 

4: the user is taken to the next page, where he must enter some details such as email and name etc... - in example.php have a form which reads in the image id which will be stored in $_GET; display and validate a form with the user details you require.


5: this info is sent to my email and then the user is taken to a thank you page - example.php should email the form data and redirect the user to the thank you page if the form data passes validation checks.

I'm not exactly sure how it'll be used, but you could keep it all on the same page by using a jQuery form wizard like the links below. Basically, it'll keep all of the form on one page, but hide the fields for email, name etc. until the user fills out the first part of the form (ie the pictures).

 

 

http://thecodemine.org/ or any of these: http://www.jquery4u.com/forms/6-jquery-form-wizard-plugins/

you can also use sinatra i think its simpler and faster than php.

 

here is my simple form script

 

github com /xoxoxo/sinatra-haml-contact-form-without-page-refresh-jquery

Edited by Guest

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.