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
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
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
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
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
Share on other sites

Yeh, you are right.short tags are not allowed by default any more in PHP.

One of our programmer make such codes in short tags for a  project. When i update to PHP 5.2.6.

PHP didn't parse the code.I changed all tags to <?php echo .... ?>

Then it works.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.