Forum Moderators: coopster

Message Too Old, No Replies

Submit form by script

Without need for user clicking submit button

         

one_mind

8:48 am on Nov 23, 2005 (gmt 0)

10+ Year Member



Hi,

I was wondering if it was possible to have a form submitted automatically without the need for a submit button. I thought this might be a way to send arrays to another script.

Is there another way to pass an array to another script, i tried via GET but it sends the word "array" and not its actual contents like so.

s.php
-------------
<?php

$error[] = "Enter Name";
$error[] = "Enter Password";

header("Location: a.php?error=$error");

?>

a.php
-------------
<?php

$error = $_GET['error'];

echo $error . "<br>";

?>

dreamcatcher

8:53 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



one_mind,

This relates to your previous post. Have a go at what I posted there. And yes, echoing $error will give you array. You need to iterate through an array to get its values.

dc