function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
andyMTandyMT 

Client form to database

I'm new to salesforce. So this is probably an easy one.

I have an apex page that was written in html and wraped in apex. The html is a form that the client would fill out to create an invoice. Then when they click [submit] I need to creat a record for that in a database.

 

Now I know its possible but i'm not sure how to go about it exactly.

 

thanks for any help 

Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf
Like this perhaps?

All Answers

werewolfwerewolf
Like this perhaps?
This was selected as the best answer
andyMTandyMT

yes very much like that .

Now the question is how?

 

Thank you for you prompt reply 

werewolfwerewolf
Take a look at Introduction To Visualforce for the basics on how to set up a Visualforce page.
andyMTandyMT

Thank you... I may sound crazy but theres so much on this website that sometimes its hard to figure out were to start. 

 

If I understad the page which contains my text boxes and such use controllers to comunicate with the data base.

 

The controller hadles the action of what I want it to do. i.e. insert this data, save without comiting that kind of thing. 

werewolfwerewolf
That is correct -- Visualforce uses a model-view-controller model, where the model is the database, the view is the page, and the controller sits in between and moderates the data going in and out.
andyMTandyMT
that clears things up thank you