Skip to content
Advertisement

Tag: php

PHP Redirection with Post Parameters

I have a webpage. This webpage redirects the user to another webpage, more or less the following way: Well, you see, what I do is transferring the GET params into POST params. Do not tell me it is bad, I know that myself, and it is not exactly what I really do, what is important is that I collect data

Go Back to Previous Page

I am using a form to “Rate” a page. This form “posts” data to a php script elsewhere. I simply want to display a link after the form is processed which will bring the user back to previous page. Can I do this using javascript in my php script? GF Answer You can use a link to invoke history.go(-1) in

Can’t add new lines in JavaScript alert Box?

I’m generating a string in PHP and then eventually passing this string into a JavaScript alert box, my problem is I actually can’t add line breaks in my alert box. My code looks as follows I’m getting the error: Undeterminnated string literal If I remove the n from the string it works 100% but without line breaks. Answer This happens

Advertisement