Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error.. please help

Status
Not open for further replies.

Spidy6123

Technical User
May 30, 2002
227
CA
Hey guys,

what exactly is wrong with this?
Code:
  print "<meta http-equiv=\"refresh\" content=\"2; URL=javascript:window.open('ok.htm','framer')\">";
 
What is the error you are getting?

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
it keeps returning null on the screen

I'm trying to get the redirect to open in the window "framer
 
Hi Spidy6123,
This is not exactly releated to PHP. May be HTML or Javascript Forum is a way to go.


--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
do you have to close the quotes around the content attribute?
 
Does anyone see a PHP question here? Unless he's asking about the print function, I assume the question is entirely about HTML and JavaScript.



Want the best answers? Ask the best questions! TANSTAAFL!
 
its a question about sending java through php.. hence making it relevant..

if u dont have anything useful to say.. then dont say it..



anyways.. I found a work around.. I just forwarded to a frames page which held the new 'framer' page in the frames arguement.

Thanks for your help anyways
 
Your question might, just might, have something to do with sending JavaScript code, not Java code, through PHP.

Again, if your question is about the nitty-gritty details of crafting a well-formed PHP print statement, this is the appropriate forum for your question.

However, if your question is about what that print statement should print, then you're asking an HTML or JavaScript question.





Want the best answers? Ask the best questions! TANSTAAFL!
 
Spidy, it's not something to be defensive about, he's just trying to get you to the right forum so you get your answer, not get you out of here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top