Hello,
This has got me in a pickle, though I'm sure it's probably fairly easy.
I need to get the hash value from the parent window uri, and insert this into the set_value() function. Obviously I can't get a hash with PHP, so it has to be javascript.
parent.location.hash
works but I've no idea how to get it into set_value().
The following is the code I'm working with (obviously wrong but you get the idea):
<label for="appt_start">Start Time</label>
<?php echo form_error('appt_start'); ?>
<br />
<input id="appt_start" type="text" name="appt_start" maxlength="12"
value="<?php $time = "<script>document.write('parent.location.hash');
</script>"; set_value('appt_start', $time) ;?>" />
Thanks!