Hi, Wednesday, April 14, 2004, 7:59:43 PM, you wrote: RL> Tom Rogers wrote:
>> Hi, >> >> Wednesday, April 14, 2004, 6:57:53 PM, you wrote: >> RL> So is there a way of making a single form post affect two scripts in >> RL> different HTML frames? Or a way of posting values from the second >> frame to RL> the third automatically (i.e. without the user clicking an >> HTML 'submit' RL> button)? >> >> RL> Cheers, >> RL> Richard >> >> >> Post your details to the main page that defines the frames and get >> that page to pass the new details on to the sub pages. that way all frames >> will be regenerated after the post operation. >> RL> OK, but the only way I can think to do this is by appending the details to RL> the URLs: RL> <frame ... src="file.php?id=<? echo $_POST['id']; ?>&..." /> RL> which will make them available with $_GET. All my coding so far has assumed RL> that data will be available in $_POST. Is there any way of passing data in RL> $_POST automatically? RL> R. Maybe the best way then is to use sessions which are updated by the main page and accessed from the sub pages where needed. That way you keep all the urls clean. Or if you don't want to use sessions store the details in a db and pass the key to the sub pages. If you have to use post have a look at curl functions -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php