How to pass userpref variables in an igoogle widget

144 views Asked by At

Hi I've made my igoogle app simple though it is basically using an xml/php file and getting a series of articles and displaying them. Simple and nice.

Now I just need to finish it off with passing how many stories the use would like to show. I've got the dropdown working for when they click edit settings in the google area but I'm at a loss on how to pass the information back to my php/xml file and display the number of stories the user has selected.

Can anyone help.

2

There are 2 answers

1
vkGunasekaran On BEST ANSWER

There is a brief document about working with userpref. it may help you. Check this Google document and also they listed how to deal with remote content in two type GET AND POST, check this document also working with remote content

4
Eli Y On

do a <form>

with auto-submit

<select name='myfield' onchange='this.form.submit()'>
<option .... >
...
</select>
</form>

then you got $_POST['myfield']