Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:07:53+00:00 2026-05-27T21:07:53+00:00

I have the following code. Only the first line of echo’d text in the

  • 0

I have the following code. Only the first line of echo’d text in the function showRegistrationForm() gets my Arial, sans-serif font style.

However the ‘color’ in both the ‘body’ and the ‘form’ tag’s style works fine. The first line is red and san-serif.

But all the text in the form, while it does pick up the blue color style, is a serif’d Courier font!

Only the first line that says “Please provide the following info — a ‘*’ denotes a required field.”
is showing up with a Sans-serif font.

NOTE: strangely though, the ‘color’ style WORKS fine — the “Please provide…” line is red, and the form text is blue.

Only the sans-serif font style goes away — all the text inside the form is a courier-looking serif’d font.
NOTE: I see the same ‘only the first line is sans-serif’ if I get rid of the ‘form’ style tag. When only the ‘body’
style tag is present, all the text is red but again ONLY the first line of text is san-serif, the rest is Courier text in all the form’s text.

Why?

<html>
<head>
<style>
  body
  {
      color: rgb(255,0,0);
      font-family: Arial, sans-serif;
  }
  form
  {
      color: rgb(0,0,255);
      font-family: Arial, sans-serif;         
  }

</style>        
</head>    

<body>
<?php

showRegistrationForm();


function showRegistrationForm()
{
echo "Please provide the following info -- a * denotes a required field.";

echo '<br /><form action="newUserRegistration.php" method="post">';
echo '<br />Screen name * : <input type="text" name="screenName" />';
echo '<br />First name  : <input type="text" name=$firstNameLabel />';
echo '<br />Last name * : <input type="text" name=$lastNameLabel />';
echo '<br />Phone  : <input type="text" name=$phoneLabel />';
echo '<br />Email * : <input type="text" name=$emailLabel size=40 />';
echo '<br /><input type="submit" name="addNewRegUserBtn" value="Register Now!" />';
echo '<br /></form>';
}
?>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:07:54+00:00Added an answer on May 27, 2026 at 9:07 pm

    You have the <pre> tag in use. Delete that and it should work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code (only sections of it) for getting the entries in
I have the following code which will allow only numbers 0-9. But i want
I have the following code: [[NSNotificationCenter defaultCenter] postNotificationName:kNewsfeedFetchCompleted object:self userInfo:userinfo]; only this, no where
I have the following scenario. The client code only has access to FooHandler, not
I have written the following code. But it is removing only &nbsp; not <br>
I have multiple messages in SQS. The following code always returns only one, even
In following code, I have one large component, and I'd like only the level4
How do I change the following bit of code so that I only have
I have the following sample set of data: <p>first line\n second line\n third line\n</p>
I have the following function from some legacy code that I am maintaining. long

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.