Hidden value <p> [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 7 years ago.
Improve this question
I want to know how to hidden p value but remain the value in the table. How to do it?
This is the code
<p id="session"></p>
If value in input text field we can hidden the value by using this code hidden="hidden". Value still in the table but user can not see it.
thanks,
faizal.

If it's supposed to be a value in a form (which I presume from your reference to <input>, then you can make it a hidden form field.
<input type="hidden" value="**the value**" id="session" />
However, this will still be visible to a user who looks into the source code of the page. You might find it better to store the value in a session if you don't want the user to know it at all.

you can do like this
<style>
#session {
display:none;
}
</style>
<p id="session"></p>

I'm not sure if i understand the question correctly but you can just put display:none on the P

Related

Php posting a posted data to another page [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 2 years ago.
Improve this question
lets say i have $x data that has posted from another page to my currentpage. and i want to get additional input information from user, and post both of these datas to the next page. how would i do that? i tried to give posted data as a name attribute to button but i cant get them from nextpage
as an example here my current page;
please check it here
here $x came from first page as a posted data. and i will have one more data named="mesai". and i want to access these two in the nextpage. thats why i tried to name button as $x but it didnt work.
hope you understand what i mean. thanks
Use always code format not image for your question.
An option you can use hidden value like:
<input id="howuwant" name="howuwant" type="hidden" value="<?php echo $_POST['howuwant'] ?>">
or if you are in php page
echo " <input id='howuwant' name='howuwant' type='hidden' value='".$_POST['howuwant']."'>;
Now you have all two data for the next page.

Using PHP script to replace a field in HTML form [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 7 years ago.
Improve this question
I need to use PHP script to replace the 7th character of a HTML form input Field.
Eg.
A234591Q
To become
A23459IQ
Replacing number1 with I letter.
The problem is that I don’t have acess to php script file, so I need to do it in HTML page as customer types data, or at submit time.
Moises
If you have the JQuery library linked on your page, then you can try the following.
First you should give your input an ID e.g <input type="text" id="useranswer">
Then set the onsubmit property of your HTML form to:
<form action="" onSubmit="replaceAt(7,$('#useranswer').val())">
Then define the replaceAt Function.
function replaceAt(index,word){
newWord=word.substr(0,index) + 'l' + word.substr(index+1);
$('#useranser').val(newWord);
}
I have just given the answer for your question as it is not clear how you plan to implement it without access to the source

Getting INFO 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 8 years ago.
Improve this question
So, I made a thing where it gets the connection of a game server when you put it in a search box and press submit. Now, what I want it to do is to get the information when I type something like http://link.com/search.php?serverName=hello.com
and that hello.com would be the thing that it gets the information for.
You should consider looking into something called GET which can be added to your HTML form, which essentially adds the content entered into the 'searchbox' onto the URL at the top.
You can try it out using something like this..
<form action="search.php" method="GET">
<!-- Your form components here -->
<input type="submit" value="serverName">
See above that the value of the submit button needs to be set to what you want to appear at the end of the URL, in this case it would display '?serverName'
Then in regards to processing this data, you will need to look up searching algorithms in PHP, the best method is a FULL-TEXT search, but can be quite complicated to do, there are others that will get the job done.
http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html
Some more useful links:
http://www.w3schools.com/html/html_forms.asp
http://www.tutorialspoint.com/php/php_get_post.htm

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.

i want to pass a string from one input box to another in different page [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 8 years ago.
Improve this question
i want to pass a string from an input box that after submition automatically goes to different page and the string gets copied in the input box in that page .the Language I am using is php.
In your second page, you need to read the incoming value from the input box and include it in the output (which includes the second input box). Do not forget to pass the value of the variable through htmlspecialchars, since you are outputting it as part of your HTML.
So the code for the second page would look something like this:
$incoming = $_REQUEST['name_of_input_box_1'];
echo '<input type="text" name="name_of_input_box_2" value="'
.htmlspecialchars($incoming).'" />';

Categories