Zen Cart Logo
Forums / General Questions / How to create a form on ezpage?

How to create a form on ezpage?

Locked

Views: 1,736

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Jul 2008, 5:31 PM
#1
sfklaas avatar

sfklaas

Zen Follower

Join Date:
Mar 2008
Posts:
219
Plugin Contributions:
0

How to create a form on ezpage?

My goal is to create a personalized form on an ez-page. I was able to successfully create the input box including name, email, and another input text with both the submit and reset buttons below it! I was pumped! You can see it at

http://www.bendisskin.com/index.php?main_page=page&id=17

MY question though is how can I receive the submitted information. When a user presses submit, can that be e-mailed to my e-mail. Is it stored in a database? what code would I need to put to retrieve that info? I'm stuck!

Thanks!

**** EDITED *** Never ever post in a forum, email, newsletter etc. the zenid or zenAdminID or you will be doomed!!** :eek:

12 Jul 2008, 7:56 PM
#2
sfklaas avatar

sfklaas

Zen Follower

Join Date:
Mar 2008
Posts:
219
Plugin Contributions:
0

Re: How to create a form on ezpage?

I guess my real question. If someone fills out the form and clicks submit, where will I be able to find that information?

13 Jul 2008, 1:21 AM
#3
sfklaas avatar

sfklaas

Zen Follower

Join Date:
Mar 2008
Posts:
219
Plugin Contributions:
0

Re: How to create a form on ezpage?

I've been stuck for a while and its killing me. I want to create a form that I can add to my ezpage. Can anyone guide me with a very simple, one input text box with a submit button? Is this possible? I'm very new to this.

13 Jul 2008, 1:25 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to create a form on ezpage?

Try https://www.hotscripts.com - lots and lots of form scripts there.

13 Jul 2008, 1:30 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to create a form on ezpage?

sfklaas:

My goal is to create a personalized form on an ez-page. I was able to successfully create the input box including name, email, and another input text with both the submit and reset buttons below it! I was pumped! You can see it at

http://www.bendisskin.com/index.php?main_page=page&id=17

MY question though is how can I receive the submitted information. When a user presses submit, can that be e-mailed to my e-mail. Is it stored in a database? what code would I need to put to retrieve that info? I'm stuck!It's not quite that simple.
If you want to submit a form, you need to set the form's "action" parameter to point to a script that can process the input submitted by the form. That could be an external program (some people have tried using formmail.php and dealing with its challenges), or it could be a Zen Cart page.
If you want it to be a Zen Cart page, you'd be better off writing a dedicated page than making it an EZ-Page, since you have to build the "processing" logic as well as the input logic.

There's a sample script available to show how to build a page which simply collects info from several fields and send it to you via email: http://www.zen-cart.com/forum/showthread.php?p=386482#post386482
Doing it this way allows it to use the built-in Zen Cart emailing infrastructure to send it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.