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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:16:20+00:00 2026-05-11T22:16:20+00:00

Here is the input form code <tr valign=top> <td align=right class=innertablestyle><font class=normal><strong>Homepage</strong></font></td> <td>&nbsp;</td> <td>

  • 0

Here is the input form code

<tr valign="top">
    <td align="right" class="innertablestyle"><font class="normal"><strong>Homepage</strong></font></td>
    <td>&nbsp;</td>
    <td>
        <font class='normal'>
            http://
            <input name="website" type="text" id="website" value="<?php echo $website; ?>">
            &nbsp;
        </font>
        <font class="normal">&nbsp; </font>
    </td>
</tr>

Here is the display code

<tr > 
<td height="25" class="selllink"> Website 
Address<font class="h2">&nbsp;&nbsp;&nbsp; 

<?php 
$group_set=mysql_fetch_array(mysql_query("select * from b2b_groups where sb_memtype=".$mem["sb_memtype"])); 
if(($sbrow_off["sb_website"]<>"")&&($group_set["sb_posturl"]=='yes')) 
{echo "<a href='http://".$sbrow_off["sb_website"]."' target='_blank'>".$sbrow_off["sb_website"]."</a>"; } 
else 
{echo $config["sb_null_char"];} 
?> 
</font></td> 
</tr> 

form that collects url of users to store in a database. They should not enter the http:// with their URL however many and the result is that when their url is displayed it looks like this

http;//http://www.foo.com I need the form to strip it or ignore it or what ever you think is the best way to handle it.

  • 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-11T22:16:20+00:00Added an answer on May 11, 2026 at 10:16 pm
    if (stripos($website, "http://") === 0) 
        $website = substr($website, 7);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my jquery code: $('input').click(function(){ $('h1').empty().queue(function(){ console.log('queue'); }); }); }); Only the first
Here's a piece of code from the xss_clean method of the Input_Core class of
I have a user input form here: http://www.7bks.com/create (Google login required) When you first
I am using form and evaluating it through PHP. Here is my form code:
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!
I have a view that dynamically updates depending on user input - here's how
Here's my code: sentenceToTranslate = raw_input(Please write in the sentence you want to translate:
here is link to an example: http://techchorus.net/demos/jquery/hiding-input-elements-in-a-div.html It actally disables few elements on click
Here is an example of what I'd expect: Input: a { background: red; }
Here's the situation: I would like to iterate through a table with input controls,

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.