Jump to content

Couple of questions that I need help on.


theshirey

Recommended Posts

1.  I want to create a newsletter page and I was wondering how I could just code the page in full PHP to show the input for an email address and then a signup  button.  I want that particular page to run the specific php script and show whether it is successful or not.

 

2.  I want to create a poll that will allow users to answer the question and then have the data saved in a db and then emailed to a predefined email address.

 

I would appreciate any help with this.

Link to comment
Share on other sites

It sounds like you need to learn php. Both of those things are relatively easy to do when you know how.

 

If you DO already know php, then why don't you tell us where you are at, and where you have gotten hung up. If you don't know php, well this forum is for help, not for writing code for someone, unless you are willing to pay, in which case there is freelance (or something like that) section of the board.

Link to comment
Share on other sites

I want to create a newsletter page and I was wondering how I could just code the page in full PHP to show the input for an email address and then a signup  button.  I want that particular page to run the specific php script and show whether it is successful or not.

 

The first half of that isn't even php, its just a pure html form. If you want to do it in php for some reason, you could use an echo statement to send it out.

 

Then use the php 'mail' function to send the message. The mail function returns a value of true if the mail was successful, false if it wasnt. Use that to decide what message to give to the user.

 

I want to create a poll that will allow users to answer the question and then have the data saved in a db and then emailed to a predefined email address.

 

Create the poll using radio buttons in HTML. Submit the result to a database, and use the mail function to email the data to a set mail address. You can set that address in the script itself.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.