Solved

Javascript inside php echo

Posted on 2011-03-16
3
424 Views
Last Modified: 2012-08-13
Hi all,

I need to insert a javascript refresh page into an echo:

history.go(0) in an echo ?

Anyone please?

Thanks

p.s: I basically need to reload the page by code.
0
Comment
Question by:error77
3 Comments
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 500 total points
ID: 35149382
echo '<script>history.go(0)</script>';

Open in new window

0
 
LVL 4

Expert Comment

by:GeoffHarper
ID: 35149409
Do you mean:

location.reload(true);
0
 

Author Closing Comment

by:error77
ID: 35149469
p.s: true: location.reload(true); and it didn't reload the page but thanks anyway for the suggestion.
The jajvascript works perfect. Thanks :o)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question