Is there a way to distribute the returned values of 2 Echos into 2 dif. LC fields ?
i.e.
Code: Select all
<?php
echo "Start date : ".$date1;
echo "End date : ".$date2;
?>
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
<?php
echo "Start date : ".$date1;
echo "End date : ".$date2;
?>
Code: Select all
<?php echo $date1.",".$date2; ?>
Code: Select all
put it into toParse
repeat with i = 1 to the number of lines of toParse
put item 1 of toParse into field "start date"
put item 2 of toParse into field "end date"
end repeat
Code: Select all
<?php
echo $date1.",";
echo $date2;
?>
Code: Select all
Start date : 2018-02-09T12:18:49+01:00End date : 2018-02-09T12:18:49+01:00
Code: Select all
on mouseUp
-- get URL myPhp -- we would fetch the php data this way
get "Start date : 2018-02-09T12:18:49+01:00End date : 2018-02-09T12:18:49+01:00"
-- but we already know the data ;-)
put CR after char offset("End date :", it) -1 of it
put line 1 of it into fld "Start"
put line 2 of it into fld "End"
end mouseUp