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 6636489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:11:32+00:00 2026-05-25T23:11:32+00:00

I have an table, Now i want when after filling this table This is

  • 0

I have an table, Now i want when after filling this table
This is the table in ssl.php page

<table  width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
            <td class="TitleBar">Generate CSR</td>
            </tr>
        </table>
     <table  cellspacing="0" border="0" width="100%">

         <tr>               
            <td>Country Name(only two letters) :</td>
            <td >
            <input name="countryname" type="text"  id="countryname" MaxLength="2"/>
            </td>
        </tr>  
        <tr>                
            <td>State or Province Name :</td>
            <td> 
            <input name="province" type="text" id="province"/>
            </td>
         </tr>
         <tr>               
        <td>Locality Name :</td>
            <td >
            <input name="localityname" type="text"  id="localityname"/>
            </td>
        <tr>                
        <td>Organization Name :</td>
            <td> 
            <input name="organizationname" type="text" class="style16" id="organizationname"/>
            </td>
         </tr> 
         <tr>           
         <td>Organizational Unit Name :</td>
                <td > 
                <input name="organizationunit" type="text" id="organizationunit"/>
                </td>
         </tr>
         <tr>               
        <td>Common Name :</td>
            <td> 
            <input name="commonname" type="text"  id="commonname"/>
            </td>
         </tr>
            <tr>                
        <td>Email Address :</td>
            <td > 
            <input name="email" type="text"  id="email"/>
            </td>
         </tr>
            <tr>
            <td style="padding-top:15px padding-bottom:10px" align="right"> 
             <input name="gencsr" type="submit"  id="button" value="Generate CSR" class="FormButton" />
            </td>

            </tr></table>

HERE is my inputs :-

Country Name(only two letters) :IN
State or Province Name         :MAHARASHTRA
Locality Name                  :MUMBAI
Organization Name              :Cofin Inc
Organizational Unit Name       :Sales
Common Name                    :www.coufdffin.itdpl

I want my output like this :-

"/C=IN/ST=MAHARASHTRA/L=MUMBAI/O=Cofin Inc/OU=Sales/CN=www.coufdffin.itdpl"

How can i make the string in this format after post the table

UPdate

now i am using this

$dn = array("C" => "".trim($_POST['countryname']),
   "ST" => "".trim($_POST['province']),
   "L" => "".trim($_POST['localityname']),
   "O" => "".trim($_POST['organizationname']),
   "OU" => "".trim($_POST['organizationunit']),
   "CN" => "".trim($_POST['commonname']),
   "emailAddress" => "".trim($_POST['email']));
   $comma_separated = implode(",", $dn);
   echo $comma_separated;

What can i do plz help me?

  • 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-25T23:11:33+00:00Added an answer on May 25, 2026 at 11:11 pm

    Instead of :

    $dn = array("C" => "".trim($_POST['countryname']),
       "ST" => "".trim($_POST['province']),
       "L" => "".trim($_POST['localityname']),
       "O" => "".trim($_POST['organizationname']),
       "OU" => "".trim($_POST['organizationunit']),
       "CN" => "".trim($_POST['commonname']),
       "emailAddress" => "".trim($_POST['email']));
       $comma_separated = implode(",", $dn);
       echo $comma_separated;
    

    do:

    $dn = array("C" => "".trim($_POST['countryname']),
    "ST" => "".trim($_POST['province']),
    "L" => "".trim($_POST['localityname']),
    "O" => "".trim($_POST['organizationname']),
    "OU" => "".trim($_POST['organizationunit']),
    "CN" => "".trim($_POST['commonname']),
    "emailAddress" => "".trim($_POST['email']));
    $str = '';
    foreach($dn as $key => $val){
        $str .= "/$key=$val";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div within which a table would lie. Now I want this
I have two table first is TABLE_SUBJECT and second is TABLE_CHAPTER.Now i want to
I have a mysql table which columns are post_id and post_msg. Now I want
I have the following table in my database. Now what I want to find
I have about 1 million data in users table. Now I want each user
After creating the parse tree, i have to populate symbol table now. I have
I have a myism table 'test' which holds some out-dated data, now I want
I have a problem with filling a table the way I want and I
I have two tables, one called cart and one called items. Now I want
I have a checkboxlist.When I check one the value will appear in a table.Now

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.