0
how to format
put returns between paragraphs
for line break add 2 spaces at the end
► italic or bold
indent the code in 4 spaces
leaks of severe accents parecido _portanto_
highlighting placing > at the beginning of the line
to make links
Basic HTML is also allowed
help in the format
in input name I passed id to recover in post and update
– Solange
Hello! I tested here and got no results, nothing entered in the base date, I tested with INSERT.
– Carlos Gomes
And would it be possible to recover in the POST only like this? name="<? php echo $form['CODSTATUSOPERACAO']; ? >" It would be too massive!
– Carlos Gomes
In relation to not working with Insert may be something you forgot in your code that posted the value to the correct post, compared to recover in the POST only with name="<? php echo $form['CODSTATUSOPERACAO']; ? >" it is possible yes, as long as the post is validated, I have already made a system that mounted fields through the base, but my post only had fields that I would use in the base example Hidden acao...would have to validate and disregard it there would not put while (list($key, $val) = each($_POST['name'])) and yes while (list ($key, $val) = each ($_POST)) {
– Solange
And not to use the name in the name the if related to it would not exist if (isset($_POST['name'])) { neither reset with that post
– Solange
Solange, then the if (isset($_POST['name'])) { would look like this if (isset($_POST)) ? or would not have this Post just from the while (list ($key, $val) = each ($_POST)){
– Carlos Gomes
Solange, I did as you said, and I reread the form code and it worked fine, thank you. Do you know how to check if the q fields are mandatory at the base date work? Example the photo field is required but the email field is not, ai check if filled only the photo field q is required only q besides the fields are by the base date this is also required. It is hard to explain rsrs more know how I can do?
– Carlos Gomes
Well if I understand correctly put if for example in the input: <?php if($form['required'] == 'yes'){ ? >required="required"<? php } ? > ...now if it is the validation when it is time to perform the inclusion in the base, there at the time to give the Insert, could pass through a Hidden, but if you did without the variable with the name in the name there would already increase the work in relation to ignore that Hidden, perhaps a select before Insert would be more feasible
– Solange
I used the required and look for sure is easier kk, is it possible to put a custom message in the required? An Alert script? The ULTTIMA COISA kk, it is possible I put a form to send an image a type file more q so accepted Image, in case I would insert the image in a folder of the server and insert the link in the base date along with the forms, tell me q yes and q the code is simple, and thank you again for your help.
– Carlos Gomes
Yes it is possible custom message in required using css or a jquery has several templates on the net gives a searched with several different css and such, regarding the file yes field it is possible you can validate file format by javascript or same php, i prefer by php, also have enough material on the internet about this.
– Solange