Jump to content

Form Submit


karl.wong

Recommended Posts

Hi there,

 

I'm trying to make a custom page with a form.

 

This is what i have done so far:

 

1) Creating a custompage.php

2) Creating a CustomPageController.php

3) Creating a custompage.tpl

4) Creating the page in back office through preferences - > SEO & URLs

 

Everything is working fine, but I have a problem with form submission.

 

Been looking up for tutorials about this but was unable to find any useful one. 

 

So this is what i'm looking for:

 

1) How does the form submission work? Like the tags <form action="xxx"> in normal PHP and how does it look like in prestashop? I don't see any of them here.

 

2) Where and how do I post the data?

 

3) There's also an Upload Attachment field there in this form and i'm unable to upload anything yet as per my knowledge, the file upload system here in prestashop works differently?

 

Hope that someone can help on this as the docs aren't really clear.

 

Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...