[pubcookie-users] Using Post to pass array

Jon Hauser jhauser at uw.edu
Mon Aug 17 09:59:21 PDT 2009


Hi All,

I have been running into a road block when working with Forms and
pubcookie. Whenever I try anything more then a basic form using submit
a using POST (using php and a database) it does not work. (e.g. Yahoo
User Interface Elements, AJAX, etc..) However all of those bells and
whistles work fine on a server with just SSL security.

For example: 2 simple php files passing array values and then
printing it out, btest0.php, and btest1.php

WORKING EXAMPLES

https://128.95.226.5/btest0.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>bTest0</title>
</head>
<body>
<pre>
<?php print('<a href="btest0.php">Reload</a>'); ?>
<br />SECURE
<form action="btest1.php" method="post">
<input type="text" name="arr[0]" value="1" />
<input type="text" name="arr[1]" value="2" />
<input type="text" name="arr[2]" value="3" />
<input type="text" name="arr[3]" value="4" />
<input type="submit" name="submit" />
</form>
</pre>
</body>
</html>

https://128.95.226.5/btest1.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<meta http-equiv="REFRESH" content="text/html">
<title>bTest1</title>
</head>
<body>
<pre>
<?php print('<a href="btest0.php">Back</a>'); ?>
<br />SECURE
<?php
$got = $_POST['arr'];
print_r($got);
?>
</pre>
</body>
</html>


NON-WORKING EXAMPLE IN PUB COOKIE

https://web.psych.washington.edu/admin/btest/btest0.php

The array is not printed out.... (or in other examples, AJAX
calenders don't pop up, or Java Based HTML text editors don't show,
etc.,, etc.)

I am hoping there is a setting that I am missing somewhere.

All help is appreciated.

-Jon

------------------------------------------------------
Jon Hauser, M.S.
Senior Computer Specialist - Media Lab Director
Department of Psychology
University of Washington
Box 351525
Seattle, WA 98195-1525
Phone: (206) 685-2079
Fax: (206) 685-3157
-------------------------------------------------------





More information about the pubcookie-users mailing list