Jump to content

[SOLVED] value=""


Pavlos1316

Recommended Posts

no

 

let me refrase

 

if I write

<input name="Name" type="text" id="Name" size="50" maxlength="19" value="Full Name"/>

I get a textfield that inside user can see whatever I set in value="". for this ex. Full Name

 

I need it to be a visible textfield but without show the value I set.

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597215
Share on other sites

you mean something like this?

<?php
if(isset($_GET['Name'] && !empty($_GET['Name'])) {
$value = "value=\"" . $_GET['Name'] . "\"";
} else {
$value = "value=\"\"";
}
?>
<input name="Name" type="text" id="Name" size="50" maxlength="19" <?=$value?> />

 

Regards ACE

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597238
Share on other sites

Nope, i don't think he want it like that way.

I already give him idea in other thread.

He want to set full name to value but will not be visible. which i think is not possible.

Using hidden can.but he is not talking about that.He want to give visible textbox with value hidden.

NOT POSSIBLE like this way.i didn't heard that in my whole life. maybe have solution. Not sure.

 

@MasterACE14

 

<input name="Name" type="text" id="Name" size="50" maxlength="19" <?=$value?> />

 

<?=$value?>

Is this working in PHP 5.2.6 and above to echo a value?

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597257
Share on other sites

either hidden like ratcatme said or <input type="password">

 

Seems like a fair sort of answer, then the value will be visible but will appear as ******

 

Use CSS to make the text in the box white (or match the bg colour).

You could just highlight the text. :P

 

 

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597261
Share on other sites

Nope, i don't think he want it like that way.

I already give him idea in other thread.

He want to set full name to value but will not be visible. which i think is not possible.

Using hidden can.but he is not talking about that.He want to give visible textbox with value hidden.

NOT POSSIBLE like this way.i didn't heard that in my whole life. maybe have solution. Not sure.

 

@MasterACE14

 

<input name="Name" type="text" id="Name" size="50" maxlength="19" <?=$value?> />

 

<?=$value?>

Is this working in PHP 5.2.6 and above to echo a value?

 

To be honest, I still have no idea what he's trying to do :S

And no, short tags are not valid in PHP5 unless enabled in the php ini. By default, they're disabled. I think so, anyway :S

 

----------------

Now playing: Linkin Park - [Chali]

via FoxyTunes

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597268
Share on other sites

THIS DID WHAT I WANTED...

 

if ((empty($FieldName) + empty($FieldName2) + empty($FieldName3) + empty($FieldName4) + empty($FieldName5) + empty($FieldName6)) > 1){
include....;
echo...;
exit();

 

COUNT IF MORE THAN 2 FIELDS ARE EMPTY.

 

SORRY IF I DIDN'T EXPLAINED IT CORRECT.

 

THANKS FOR HELPING

Link to comment
https://forums.phpfreaks.com/topic/116136-solved-value/#findComment-597441
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.