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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:28:27+00:00 2026-06-09T06:28:27+00:00

I have a url input field where untagged text gets stored as a link

  • 0

I have a url input field where untagged text gets stored as a link like this:

$newwebsiteurl = '<a target="_blank" href="http://' .$_POST['newwebsiteurl']
                  . '">' .   $_POST['newwebsiteurl'] . '</a>';

but now I want another form where the data can be edited and I want to echo back the information(from mysql) without the tags so basically the inverse of the above code I need to do something like this:

             echo $info['category'] 

minus this part:

                <a target="_blank" href="http://
                <a target="_blank" href="xxxxx">*show_this_part_only*</a>
  • 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-06-09T06:28:28+00:00Added an answer on June 9, 2026 at 6:28 am

    echo str_replace("/http:\/\//","",$_POST['newwebsiteurl']");

    For more clarity :

    <a target="_blank" href="<?php echo $_POST['newwebsiteurl']; ?>"><?php echo str_replace("/http:\/\//","",$_POST['newwebsiteurl']"); ?></a> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input field that saves a URL, I'd like this saved input
I have an input field, that when submitted attaches a code like this to
I have a website design that includes text input fields that look like this:
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have URL like this: http://localhost/PMApp/temp.htm?ProjectID=462 What I need to do is to get
I have an input field where a user can paste a link. I would
I have a form text field that accepts a url. When the form is
I have 1 input field. <input id=post_remote_posted_url type=text size=30 name=post[remote_posted_url]> How can I go
I have an input field on my webpage that I would like to allow
I have an HTML text input field - for example: <input id=CustID name=CustID dir=rtl

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.