Displaying hidden text using PHP [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am trying to come up with a php if statement for my site. I have a page called "research". There is text on this page with a link which says "contact me" This link links through to my contact page. Now, I need an if statement to say that if you are on the research page and you click on the contact me link, I need some text on the contact me page to be hidden and only be visible when you are on the contact page.
Is this possible?

On your contact page, you can get what you are looking for from:
$_SERVER['HTTP_REFERER']. It will tell you which page the user came from getting to the contact page.
However, you should not rely on this. Consult the following Q&A here on Stack Overflow:
How reliable is HTTP_REFERER?

Related

Send data from one landing page to other landing page in marketo [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am new in marketo, can anyone help me out?
I have created two landing pages. The first page I created have form in it and other page is a simple landing page. The problem is that I want to send data values from one landing page to other when user click the submit button and print these data values to that page. But I don't know how to send form data from one landing page to other in MARKETO.
I have searched on google but didn't get the right answer...
You should be able to pass the form data from your first page, to the second page using query string parameters. There is an article here and also one here that might help.

How can I open a new activity based on the redirect in php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Please see this link. Usually, when we login in forums, in the beginning, we see a welcome page using php code and session. In that link there are html codes and the html codes has been displayed in visitor machine.
The problem is, I do not want to use html code to display the welcome page in android device and I want create a separate layout for the welcome page and if the user can did successful login, he see the welcome layout.
I do not want a complete code from you. I know all of the codes in that link.But I do not want to use the html code in android and I have only welcome layout, so my question is:
When successful login the user, how php aware the android from user login and as the result the android application can choose a welcome layout for user?

Load HTML Thank You on Contact Form [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Instead of "Message Sent" alert, I would like to load hidden HTML content. Once the user fills out the required fields, through HTML, a Thank You message/image will appear along with an exclusive Pay Now button. Here's the link http://thebrlab.com/razor-chic-of-atlanta/sign-up.php
You can either do this with javascript inserting the div, set the display to none (display:none), then when the button is clicked, use javascript to change the attribute to display:block.
Without more information, I can't give you a better answer.

Redirecting user to a specified php based on his form inputs during registration [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am currently working on a website built entirely using Twitter Bootstrap framework.Its a website that provides questions to the users of different engineering branches.However,is it possible that i took an input like "enginnering branch=user_engineering_branch" via registration form and redirect him to a page,after his successful login,that contains questions of his branch only instead showing up the entire questions.?
I coded the entire login/registration script using php so please provide the solution in php only.
Thanks.!
Something as simple as
if ($_POST['enginnering branch']=="user_engineering_branch") {
$redirectURL="address/to/your/branch";
header('Location: '.$redirectURL);
}

Facebook like button: How do I prevent people accidently "unliking" my page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to prevent users the ability to unlike my page having clicked they like it because I have it prominently displayed next to my site's header. I am afraid that people will accidentally "unlike" my page having already clicked it once to like it.
So far I have explored a php proxy so I can use a custom css page. Anyone else have any ideas? What about a non-iframe facebook like button?
well, preventing from double click might be hard,
but after your page loaded you can get the text the inside of fb like box element, learn the id via firebug) if it is 'liked', you can hide the box..
of course you can do this only for fbml, not for iframe.
otherwise, you can't!
i suggest you to check other likebox styles. http://developers.facebook.com/docs/reference/plugins/like-box

Categories