I am trying to send data from an input_tag when I press a button with the templates in mojolicious.
use Mojolicious::Lite;
get '/' => 'index';
app->start;
__DATA__
@@ index.html.ep
<html lang="es">
<head>
<meta charset="utf-8"/>
<title>Graphs</title>
</head>
<body>
<%= tag div => (id => 'inputs') => begin %>
<h1>Grafos dirigidos</h1>
%= input_tag 'nodes', placeholder => '#Nodos', id => 'nodes'
%= input_tag 'edges', placeholder => '#Edges', id => 'edges'
%= input_tag 'start', placeholder => 'Start', id => 'start'
%= submit_button 'Generate', id => 'render', onclick => 'renderGraph()'
%= tag 'br'
%= text_area 'dijkstra', cols => 40, rows => 40, id => 'dijkstra'
<% end %>
When I press the "generate" button I want to send that data in the inputs to another perl script.