If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Can't add <textarea> in form on my EZpage

Can't add <textarea> in form on my EZpage

Locked

Started by sfklaas on 4 Mar 2009, 6:57 PM · Views: 2,863

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
4 Mar 2009, 6:57 PM
#1
sfklaas avatar

sfklaas

Zen Follower

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

Can't add <textarea> in form on my EZpage

I would like to add a form on one of my EZPages. I have been successful adding other forms that have successfully inputed information to my e-mail.

However, this time, I can't add a <textarea> to my ezpage. When I enter the line of code:

<textarea cols="50" rows="4" name="Biography">Enter Text Here</textarea>

Then I have the "submit stuff" below...

After I click update in the admin EZpage, then everything after > <textarea cols="50" rows="4" name="Biography">
is erased and it doesn't work. Then my form looks all screwed up.

Has anyone else had this problem or know why this happens? Or even better, know how to fix the problem?

My the link to the form page is http://www.bendisskin.com/index.php?main_page=page&id=25

4 Mar 2009, 7:30 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Can't add <textarea> in form on my EZpage

sfklaas:

I would like to add a form on one of my EZPages. I have been successful adding other forms that have successfully inputed information to my e-mail.

However, this time, I can't add a <textarea> to my ezpage. When I enter the line of code:

After I click update in the admin EZpage, then everything after
is erased and it doesn't work. Then my form looks all screwed up.

Has anyone else had this problem or know why this happens? Or even better, know how to fix the problem?

My the link to the form page is http://www.bendisskin.com/index.php?main_page=page&id=25

I think ?? not sure but try including the form tags as well

<form> <textarea cols="50" rows="4" name="Biography">Enter Text Here</textarea> </form>

ZC is XHTML and this element may need the form tags to function properly.

~Melanie

15 Mar 2009, 3:43 PM
#3
sfklaas avatar

sfklaas

Zen Follower

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

Re: Can't add <textarea> in form on my EZpage

If anyone can create a blank ezpage and add the code that Melanie listed above can see my problem. If you type this exactly and maybe type some <p> text after it:

<form> <textarea cols="50" rows="4" name="Biography">Enter Text Here</textarea> </form>

You'll notice that after you update and try to edit the code again, it deletes everything after the "Enter Text Here". Also, the button "update" doesn't work. And when I add a submit button with the code, it puts the submit button within the ezpage admin underneath the admin code. Is there anything I can do to prevent this? Whoever can figure this out may be the "chosen one". I've been stuck on this for weeks.

the new link to the page is: http://www.bendisskin.com/index.php?main_page=page&id=26
(the link in my first post was removed)

15 Mar 2009, 3:50 PM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Can't add <textarea> in form on my EZpage

Try adding the code to another file EG form.php and set it in the EZ page with a php include.

~Melanie

15 Mar 2009, 3:58 PM
#5
sfklaas avatar

sfklaas

Zen Follower

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

Re: Can't add <textarea> in form on my EZpage

As much as I would love to know exactly what your suggestion means (as i'm very excited that this could work), I'm sadly confused and lost. Is there a way you can explain it more in detail with some code that can be used as a template? More the better, and i'll thank you way ahead of time. I'm still a newbie when it comes to this stuff.

15 Mar 2009, 3:58 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Can't add <textarea> in form on my EZpage

Good idea, except that PHP doesn't work in ez-pages without some custom coding (which reportedly opens possible security holes).

It might be possible to do this with some variation on the "adding boilerplate to descriptions" code... not sure.

15 Mar 2009, 4:00 PM
#7
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Can't add <textarea> in form on my EZpage

Could use a define page or display the form in an Iframe too

What vulnerability are you referring to as this would be a dedicated file include and not a ZC function?

~Melanie

15 Mar 2009, 5:21 PM
#8
sfklaas avatar

sfklaas

Zen Follower

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

Re: Can't add <textarea> in form on my EZpage

I will attempt a define page later tonight... Maybe that will do the trick! Any other suggestions are greatly appreciated! Thanks for everyone who is looking into this!

16 Mar 2009, 11:23 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Can't add <textarea> in form on my EZpage

If you are really needing to have customers enter information that's entirely unrelated to products, then the custom form discussed and built in this thread might be a useful approach instead of trying to embed forms into pages that aren't intended for that purpose: http://www.zen-cart.com/forum/showthread.php?t=4855

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

28 Mar 2009, 3:16 PM
#10
sfklaas avatar

sfklaas

Zen Follower

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

Re: Can't add <textarea> in form on my EZpage

Thanks for everyones help and suggestoins. I ended up just creating my form on a define page and everything works perfect! :clap: