php – 2 submits in the same form is not working

It is necessary that two buttons execute the same action, for example the user is going to register a client and if by chance he wants to register the phone next to the button to register the client's phone before registering the client, but in my form the button registration the phone and the client together is working, which records only the client does not, but when testing in a separate environment the same scenario works normal with two submits in a form

Ps: everything is on one page

I have the following form

                     
<-- nesse trecho tem os inputs de texto,etc. -->

And for this form to work

(s)
global $ errors;
global $ state;
global $ conn;
global $ sqlCadastraClienteTel;
$ errors = array ();

$ cadastraNombre = $ _POST['txtNome'];
$ cadastraEmail = $ _POST['txtEmail'];
$ cadastraType = $ _POST['cbbTipo'];
$ cadastraStatus = $ _POST['cbbStatus'];
$ cadastraArea = $ _POST['txtArea'];
// Insertion in the bank

("$ cadastraNombre", & # 39; $ cadastraEmail & # 39 ;, & # 39; cadastraType & # 39 ;, & # 39; $ cadastraStatus & # 39 ;, & # 39; $ cadastraStatus & # 39 ;, & # 39 ;, $ cadastraArea & # 39;) ";

$ execute = mysqli_query ($ conn, $ commandql) or die (mysql_error ());
// Show the message to the user
$ answer = ("$ executes");
yes (answer $) {
$ errors['acesso_erro'] = & # 39; Registration completed successfully! & # 39 ;;
$ state = 1;
} Else {
$ errors['acesso_erro'] = & # 39; Error registering! & # 39 ;;
$ state = 2;
}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }}}}}. cadastraArea} & # 39 ;; "
return $ sqlCadastraClienteTel;
}
// Instructions to register at the bank
if (isset ($ _POST["btnCadastrar"])) {
echo "btn Register run before the function";
Post ();
echo "btn Registrar worked after the function";
$ sqlCadastraClienteTel = null;
$ cadastraName = null;
$ cadastraEmail = null;
$ cadastraType = null;
$ cadastraStatus = null;
$ cadastraArea = null;
}

if (isset ($ _POST["btnCadastrarTelefone"])) {
($ cliCodigo == 0) {}
Post ();
$ query = $ conn-> query ($ sqlCadastraClienteTel);
// Here value is assigned to the $ cliCode, but it is not running
while ($ row = $ query-> fetch_array ()) {
$ cliCodigo = $ row['cliCodigo'];
}
$ cadastraName = null;
$ cadastraEmail = null;
$ cadastraType = null;
$ cadastraStatus = null;
}
$ errors = array ();
// looking for data of the submitted form
$ cadastraTelefone = $ _POST['txtTelefone'];
$ cadastraTypeTelefone = $ _POST['txtTipoTelefone'];
// Insertion in the bank
$ commands_l = "INSERT INTO tbltelefone (cliCode, telTelefone, telType) VALUES (& # 39; $ cliCode & # 39 ;, & # 39; cadastraTelefone & # 39 ;, & # 39; cadastraTypeTelefone & # 39;)";
$ execute = mysqli_query ($ conn, $ commandql) or die (mysql_error ());
// Show the message to the user
$ answer = ("$ executes");
yes (answer $) {
$ errors['acesso_erro'] = & # 39; Registration completed successfully! & # 39 ;;
$ stateTelefone = 1;
} Else {
$ errors['acesso_erro'] = & # 39; Error registering! & # 39 ;;
$ stateTelefone = 2;
}
$ cadastraTelefone = null;
$ cadastraTypeTelefone = null;
}

Frontend development – Frame / Pattern for the mesh to form and rewind

In desktop applications, a common approach to editing records is to display a grid, select an element, display a modal form, edit, return to the grid, and the grid keeps the selected record, all very quickly.

With bootstrap 3 we did exactly that, but from the material design and bootstrap 4 there are no manners. Then, what pattern or frame is recommended / used to allow the user to quickly select a record from a grid / list view, then edit and return to the grid without losing the selected record.

Leonardo

opengl – The multiple glControl in the same form of gain does not work – OpenTK C #

I have to show the frames of two cameras in two openGl controls separately at the same time. For that I put two opengl controls on my form and passed those frames to opengl accordingly. But when the application is run, only the second opengl control works. The first is to stay with a black screen. When I remove the second control of opengl, the first one is working. It means that only one is working at a time. Can I solve this? The complete code is here. Please check

        Bitmap videoFrame = null; // should show these boxes in glcontrol1
Bitmap videoFrame2 = null; // should show these boxes in glcontrol2
int videoTexture = -1;
int videoTexture2 = -1;
int positionLocation;
int positionLocation1;
int program
int vertShader;
int fragShader;
int buffer;
private Show_Click empty (sender object, EventArgs e)
{
GL.ClearColor (Color.MidnightBlue);
GL.Enable (EnableCap.DepthTest);
TexUtil.InitTexturing ();
GL.Hint (HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
GL.DepthFunc (DepthFunction.Lequal);
GL.ColorMaterial (MaterialFace.FrontAndBack, ColorMaterialParameter.AmbientAndDiffuse);
GL.Enable (EnableCap.ColorMaterial);
GL.Enable (EnableCap.Blend);
GL.BlendFunc (BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha);
GL.Ext.BindFramebuffer (FramebufferTarget.FramebufferExt, 0); // render by default on the screen, not some FBO

glControl1.Resize + = new EventHandler (glControl1_Resize);
glControl1.Paint + = new PaintEventHandler (glControl1_Paint);
glControl2.Resize + = new EventHandler (glControl2_Resize);
glControl2.Paint + = new PaintEventHandler (glControl2_Paint);

Application.Idle + = Application_Idle;
glControl1_Resize (glControl1, EventArgs.Empty);
glControl2_Resize (glControl2, EventArgs.Empty);
}
Private void Application_Idle (sender object, EventArgs e)
{
while (glControl1.IsIdle)
{
Do();
Render2 ();
}
}
Public Empty Render ()
{
GL.BindFramebuffer (FramebufferTarget.Framebuffer, 0); // use the visible framebuffer
if (videoFrame! = null)
lock (videoFrame) // video frames 1
{
yes (videoTexture! = -1)
GL.DeleteTextures (1, ref videoTexture);
videoTexture = LoadTexture (videoFrame);
videoFrame.Dispose ();
videoFrame = null;
}
GC.Collect ();
GL.Clear (ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
DrawImage (videoTexture, glControl1);
}
public void Render2 ()
{
GL.BindFramebuffer (FramebufferTarget.Framebuffer, 0); // use the visible framebuffer
if (videoFrame2! = null)
block (videoFrame2) // frames from video 2
{
yes (videoTexture2! = -1)
GL.DeleteTextures (1, ref videoTexture2);
videoTexture2 = LoadTexture (videoFrame2);
videoFrame2.Dispose ();
videoFrame2 = null;
}
GC.Collect ();
GL.Clear (ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
DrawImage (videoTexture2, glControl2);
}
public int LoadTexture (bitmap bitmap)
{
int tex = -1;
yes (bitmap! = null)
{
GL.Hint (HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
GL.GenTextures (1, out tex);
GL.BindTexture (TextureTarget.Texture2D, tex);
bitmap.RotateFlip (RotateFlipType.RotateNoneFlipY);
BitmapData data = bitmap.LockBits (new System.Drawing.Rectangle (0, 0, bitmap.Width, bitmap.Height),
ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
GL.TexImage2D (TextureTarget.Texture2D, 0, PixelInternalFormat.Rgba, data.Width, data.Height, 0,
OpenTK.Graphics.OpenGL.PixelFormat.Bgra, PixelType.UnsignedByte, data.Scan0);
bitmap.UnlockBits (data);
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureMinFilter, (int) TextureMinFilter.Linear);
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int) TextureMagFilter.Linear);
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int) TextureWrapMode.ClampToEdge);
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int) TextureWrapMode.ClampToEdge);
}
returns tex;
}

public void DrawImage (int image, GLControl glControl)
{
GL.MatrixMode (MatrixMode.Projection);
GL.PushMatrix ();
GL.LoadIdentity ();
GL.MatrixMode (MatrixMode.Modelview);
GL.PushMatrix ();
GL.LoadIdentity ();

GL.Disable (EnableCap.Lighting);

GL.Enable (EnableCap.Texture2D);

GL.ActiveTexture (TextureUnit.Texture0);
GL.BindTexture (TextureTarget.Texture2D, image);
GL.Uniform1 (positionLocation1, 0);

RunShaders ();

GL.Disable (EnableCap.Texture2D);
GL.PopMatrix ();

GL.MatrixMode (MatrixMode.Projection);
GL.PopMatrix ();

GL.MatrixMode (MatrixMode.Modelview);

ErrorCode ec = GL.GetError ();
yes (ec! = 0)
System.Console.WriteLine (ec.ToString ());
Console.Read ();
glControl.SwapBuffers ();
}
Private Empty RunShaders ()
{
GL.UseProgram (program);
GL.DrawArrays (PrimitiveType.Triangles, 0, vertices.Length / 3);
ErrorCode ec = GL.GetError ();
yes (ec! = 0)
System.Console.WriteLine (ec.ToString ());
Console.Read ();
}
private void glControl1_Paint (sender object, PaintEventArgs e)
{
Do();
}
private void glControl1_Resize (sender object, EventArgs e)
{
In that();
}
private empty glControl2_Paint (sender object, PaintEventArgs e)
{

Render2 ();
}
private void glControl2_Resize (sender object, EventArgs e)
{
In that();
}
empty private Init ()
{
CreateShaders ();
CreateProgram ();
InitBuffers ();
}
private empty CreateProgram ()
{
program = GL.CreateProgram ();
GL.AttachShader (program, vertShader);
GL.AttachShader (program, fragShader);
GL.LinkProgram (program);
}
InitBuffers empty private ()
{
buffer = GL.GenBuffer ();
positionLocation = GL.GetAttribLocation (program, "a_position");
positionLocation1 = GL.GetUniformLocation (program, "sTexture");
GL.EnableVertexAttribArray (positionLocation);
GL.BindBuffer (BufferTarget.ArrayBuffer, buffer);
GL.BufferData (BufferTarget.ArrayBuffer, (IntPtr) (vertices.Length * sizeof (float)), vertices, BufferUsageHint.StaticDraw);
GL.VertexAttribPointer (positionLocation, 3, VertexAttribPointerType.Float, false, 0, 0);
}
Private void creators ()
{
/ *********** Vert Shader ******************** /
vertShader = GL.CreateShader (ShaderType.VertexShader);
GL.ShaderSource (vertShader, @ "attribute vec3 a_position;
variable vec2 vTexCoord;
main vacuum () {
vTexCoord = (a_position.xy + 1) / 2;
gl_Position = vec4 (a_position, 1);
} ");
GL.CompileShader (vertShader);

/ *********** Frag Shader **************** /
fragShader = GL.CreateShader (ShaderType.FragmentShader);
GL.ShaderSource (fragShader, @ "precision highp float;
sample uniform 2D sTexture; variable vec2 vTexCoord;
main vacuum ()
{
vec4 color = texture2D (sTexture, vTexCoord);
gl_FragColor = color;
} ");
GL.CompileShader (fragShader);
}

8 – How to obtain and send a web form in React?

I am planning to build a fully decoupled Drupal 8 site using Gatsby (a site generator for React). So I'll use Drupal just to structure (content types, paragraphs), enter and update all the content and data, and use React for the interface.

The website also needs a (simple) form. I want to use the web form module for this.

But how do you get a Drupal form in React and then send the completed fields to the database?

Custom SharePoint Online List -> Link or image column | Is there a way to upload an image directly from the new element form?

First of all, I'm using SharePoint Online with the "Custom List" application. In this personalized list, I have added a column of the type "link or image". I basically use this column for a simple image view.

When I want to add a new list item to my list, in this column (link or image) I can only enter the direct URL and the display name of the link, which means that I must first upload the image (for example, on the site Active) and then publish the link to this image in the column:

enter the description of the image here

Is there any possibility, to change the new element form in some way, that can directly load an image to this column (in this new element form) without the indicated solution? Is it also possible to control that the images added through the new element forms in the list are stored in the Assets of the site in a standard way?

(I know there is an additional image library application, but in my case, the image should be just additional information for the list item and not the main reason).

contact form of plug-in 7: send an email to a different recipient according to the postal code

Can anyone explain the best way to set up Contact Form 7 to make this scenario?

I have around 150 postal codes that are divided between 8 different representatives, each with their own email address.

If the postal code sent in the form matches one of the codes assigned by the representative, the email will be sent only to him.

If it does not match the postal codes assigned to anyone, the email is sent to a predetermined email address.

++++++

My form is a basic contact form with name, email, telephone and zip code.

Thank you!

Windows Application – Arclab Web Form Builder 5.0.17 | NulledTeam UnderGround

File size: 3.3 MB

Web Form Builder is the HTML form creation software for Windows PC to create contact forms by email and multi-page php forms with ease. Create HTML forms on your PC and upload them to your own website.
Outdoor

Create online forms for your website without coding

Design online contact forms, registration forms and other web forms using a visual environment without any coding or knowledge of php and HTML. Add the necessary input elements for your form and specify the data that the user will enter. Simply press a button and Arclab Web Form Builder creates the complete form code to process the form data sent by you. The generated php script shows the form, sends the form data as an email or inserts the data into a MySQL database.

Design web forms using a visual environment
Arclab Web Form Builder allows you to design all kinds of forms, from contact forms to complex multi-page forms. It includes all types of input elements, which can be validated at the user input to help you complete the form correctly and avoid invalid data. The appearance of all the elements of the form can be customized to fit the design of your website.

Add a "File Upload" form element if the user must send documents or images. Uploaded files can be attached to the email or inserted into a database. The program also contains hidden fields and logical elements for calculations and interactive forms. Use Google's reCaptcha v2, Invisible Captcha or the built-in captcha as a challenge-response test to make sure the form was completed by a human … and not by a bot.

Private and secure:
On your own website
Arclab Web Form Builder is a software product for Windows PC and not an online service. You can create the web form on your local computer and execute the complete form / data processing on your own website. No external form hosting is required and allows unlimited forms submission.
Another benefit is that no subscription is required and there are no monthly fees for the use of the software. You buy the software once (single payment) and you can create as many forms for your own website as you wish. Professional web designers can use the "Developer Edition" to create forms for their clients' websites.

Editions: Light, Pro, Developer

What's new:
Updates: the official site does not provide any information about the changes in this version.

HOMEPAGE

Download from Filefloater (Recommended)

Download from UploadGigDownload from Rapidgator
Outdoor

paragraphs – How to add multiple fields in the form of a node

I have the requirement to add several fields together by clicking on add another button (fields in the form of a node). Actually the field collection module will solve my problem. But the field collection module will be disapproved soon. So, currently, I am using the paragraph module. How I can get this?
enter the description of the image here

linear algebra – the matrix of the billinear form: $ T = e ^ 1 oplus e ^ 2 – e ^ 2 oplus e ^ 1 + 2e ^ 2 oplus e ^ 2 $

Leave $ B = ((1,2) ^ T, (1,3) ^ T) $ be the base of $ V = Bbb R ^ 2 $.

Find the dual base $ B ^ * = (e_1, e_2) $

Find the matrix of the billinear form: $ T =
e ^ 1 oplus e ^ 2 – e ^ 2 oplus e ^ 1 + 2e ^ 2 oplus e ^ 2 $
with respect to
the canonical basis
.

Well, I would usually write canonical bases as $ K = ( epsilon ^ 1, epsilon ^ 2) $ and its double base would be $ K ^ * = ( epsilon_1, epsilon_2) = ((1,0) ^ T, (0,1) ^ T) $, I think.

The conditions for dual vectors / covectors are:

$ e_i (e ^ i) = 1 $ Y $ e_i (e ^ j) = 0 $

So we can easily obtain the dual base as $ B ^ * = ((3, -1) ^ T, (- 2,1) ^ T) $ and the condition is met.

But I'm not sure about the $[T]_K $ expression. Probably I would only put the coefficients of that billing form given in the matrix, obtaining a test like this:

$[T]_X = bigl ( begin {smallmatrix} 0 & 1 \ -2 & 1 end {smallmatrix} bigr) $

But it is $ X = B $ or $ X = K $, if we are talking about the bases? Because when I see any problem regarding the canonical form, I would suggest that it is fair $[T]_K $, but we have the main base defined $ B $, and the $ T $ is expressed through $ e ^ i $do not $ epsilon ^ i $.

What if $[T]_B = bigl ( begin {smallmatrix} 0 & 1 \ -2 & 1 end {smallmatrix} bigr) $how could i get $[T]_K $?

My assumption is $[T]_K = (A ^ -1) ^ T[T]_B (A) ^ T $

Is it correct please or I do not understand it at all?