I have a example.html
function add()
 var res=0;
<form name="example" action="show.php">
 <input type="text" name="text" value="1"><br>
 <input type="text" name="text" value="2"><br>
 <input type="text" name="text" value="3"><br>
 <input type="text" name="result" value="0"><br>
 <input type="button" value="add" OnClick="add()">
 <input type="submit" value="show">
and show.php
echo $text[0]."+".$text[1]."+".$text[2]."=";
echo $result;

PHP return the error:
Notice: Uninitialized string offset: 1 in show.php on line 4

How could I know the values of the text? without modify example.html

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to