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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:55:26+00:00 2026-06-10T10:55:26+00:00

<input type=hidden name=com_link value=?dir=<?php echo ‘gallery/’.urldecode($curr_image[‘dir’]); ?>&pic=<?php echo substr(urldecode($curr_image[‘filename’]), 0, -4); ?>> substr(urldecode($curr_image[‘filename’]), 0,

  • 0
<input type="hidden" name="com_link" value="?dir=<?php echo 'gallery/'.urldecode($curr_image['dir']); ?>&pic=<?php echo substr(urldecode($curr_image['filename']), 0, -4); ?>">    

substr(urldecode($curr_image['filename']), 0, -4); I want to send filename without .jpg

  • 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-10T10:55:27+00:00Added an answer on June 10, 2026 at 10:55 am

    There are a few methods you could use to get the path without the extension.

    One would be to use PHP’s substr() with strrpos():

    $image = urldecode($curr_image['filename']);
    $name = substr($image, 0, strrpos($image, '.'));
    

    This will get a substring of the $image up to the last ..

    Another method, if you know that the extension will always be 4-characters long (including the .), is to just chop off the last 4 characters:

    $image = urldecode($curr_image['filename']);
    $length = strlen($image);
    $name = substr($image, 0, $length - 4);
    

    This last method appears to be what you were trying to do to begin with.

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

Sidebar

Related Questions

In my html I have <input type=hidden name=Code_value value=xyz> <input type=hidden name=Code_value value=abc> <input
I have this fields <input type=hidden id=uidhcdm name=uidhcdm value=0> <input type=hidden id=uidhcdm name=uidhcdm value=0>
I have an input field whose name is an MD5 string e.g.: <input type=hidden
I have a number of forms like this: <form class=some-name> <input type=hidden name=bill valueflower
How to set/change input value on other div click? Input type is hidden. It
I have a HTML hidden field: <input type=hidden title=aaa value=bbb id=TAB runat=server /> I
I have an hidden input field with a value, <form> <input type=hidden value=product/> <select
I have a sample code: <input type=checkbox id=input_modem_1 onclick=add_delete_row(this, 1,'test1' ) name=modem_id[] value=1 />
i am trying to change an input type hidden into input type file onclick
i would like to know how to create a hidden type input box and

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.