Forum Moderators: open

Message Too Old, No Replies

refresh page with new post variable

with or without javascript or PHP

         

tomda

11:18 am on Apr 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

I have a GD gallery.
After the user has browse the jpeg-file and click on submit, the same page with a preview of the picture is loaded (called here POST-PAGE). He can then add text, description, date and thick keywords related to the content in a list of keywords.
Now, the tricky part is that the list of keywords shown in the post-page have different level of difficulties (Easy, Medium and Hard).

E.g. Imagine someone want to send a picture of a rare flower for example, he submit his pic and check in the POST-PAGE if the name of the flower appear in the list in mode EASY. If not, he should be able to have the same POST-PAGE (with the preview) with the list of keywords in mode MEDIUM or HARD.

The only way to have the same POST-PAGE reloaded is to click on REFRESH (it is true that the picture will be loaded twice in my temp folder, but this is not a problem). If I put the URL in the refresh, then the user will be in the FIRST-PAGE (with the form) and not the POST-PAGE (with the preview).

I know how to refresh but I guess, what I need is a way to refresh the page and in the same time change the value of my EASY/MEDIUM/HARD variable.

Any help?

tedster

4:01 pm on Apr 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not something you're going to do with HTML alone. I'd suggest one of our scripting forums - PHP [webmasterworld.com] would probably would be better than javascript because you will have no concerns about browser support when you use a server-side solution.