Note that there are some explanatory texts on larger screens.

plurals
  1. POMove <input> datas between different pages
    text
    copied!<p>In the same server, I have a page called <code>mkwars</code> and another called <code>generatedtab</code>. Inside mkwars I have a lot of input fields that contains numeric numbers.I need to transfer the datas from those inputs, to another new inputs located in the page <code>generatedtab</code>.</p> <p>This is the HTML code:</p> <pre><code>&lt;table border="0" id="table1" align="center" cellspacing="0" cellpadding="3" width="100%"&gt; &lt;tr&gt; &lt;td width="50%" valign="top"&gt;&lt;b&gt;Home Clan:&lt;/b&gt; &lt;input type="text" id="clan1" name="clan1" onchange="nomewar();"/&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Opponent Clan: &lt;/b&gt; &lt;input type="text" id="clan2" name="clan2" onchange="nomewar();"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; //other code &lt;form method="post" action="savewar.php"&gt; &lt;input type="submit" Value="Generate Table" style="height:70px;width:800px" /&gt; &lt;/form&gt; </code></pre> <p>And here you can see the PHP file:</p> <pre><code>&lt;? $percorso = file("war/filedb.txt"); while(list(,$value) = each($percorso)){ list($clan1, $clan2) = split("[:]", $value); $params["clan1"] = trim($clan1); $params["clan2"] = trim($clan2); #print results echo $params["clan1"]." - ".$params["clan2"]."&lt;br /&gt;"; } ?&gt; </code></pre> <p><code>war</code> is a folder inside my server. When I click the button Generate Table I can't see the file (war/filedb.txt). Could you help me? I thought that the PHP way was the better, but if you think that I should do something else, tell me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload