<div class="OrderFormContainer" >
<form name = "OrderForm" action = "[[~[[*id]]]]" method = "post">
name: <input type = "text" name = "OrdererName" value = "name here..."><br>
select option:
<select name = "VehicleType">
<option value = "1">option 1
<option value = "2">option 2
<option value = "3">option 3
</select><br>
leave contacts
<br>
<textarea class="textarea" name = "Contacts" rows = "10" cols = "15" >enter contacts here..</textarea><br>
<input type = "submit" value = "submit">
</form>
</div>http://rtfm.modx.com/extras/revo/formit2dbThanks. I've been there. But I still can't find any example of how to make a call to snippet in case similar to mine. All I ask is a little specific example, that will be of much help. [ed. note: bansgoo last edited this post 12 years, 3 months ago.]
There's a long discussion here https://forums.modx.com/thread/32560/formit2db-with-autocreate-schema-classesThanks, second link seems to be right thing. I'll try to make it
And there is this http://www.crimsonpixel.co.uk/blog/2013/07/29/modx-formit-to-custom-database-table/
There's a long discussion here https://forums.modx.com/thread/32560/formit2db-with-autocreate-schema-classesI have another question... Here is a call from the second link you gave:
And there is this http://www.crimsonpixel.co.uk/blog/2013/07/29/modx-formit-to-custom-database-table/
[[!FormIt? &submitvar=`submit` &hooks=`formit2db,email,redirect` &validate=`nospam:blank,name:required,phone:required,email:email:required` &emailTpl=`emailResponse` &emailSubject=`Message from website` &emailTo=`[email protected]` &redirectTo=`6` ]]
You can just skip the email hook and all of its properties if you don't want to send email. Just keep in mind that the hooks you do declare are run in the order in which you declare them.Thanks, I got it.
you don't need to create a snippet, if you have installed formit2db by package-managementOk. Then why that php code is given in article? I guess I should place it somewhere.