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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:14:20+00:00 2026-05-27T12:14:20+00:00

I am having something strange happen. My script is for editing information. When I

  • 0

I am having something strange happen.

My script is for editing information.
When I send the $_POST from my textarea to my php page. It sanitizes and inserts correctly, but I also want to re-output the data if called upon again. So i am basically using jquery $post to send and retrieve the information.

It all works great, except when I call the info back with the edit button and function “onmousedown” it is not giving me the correct format for my parameters.

If I only write on one line it comes out perfect, but if I use multiple lines it won’t retain the line breaks and it chops off the closing ” ‘ ” so the function cannot be reset. Any ideas? Here is my callback echo. Thanks in advance…

The problem is in the “$againList” parameter…

$againList = $_POST['updated_songList']; // I am sending back the exact same data that was given without filter...
echo '<span><h4 style="margin-bottom:0px; font-size:14px;">'.$full_birthday.'
    <a href="#" onclick="deleteSongList('.$songid.');" style="color:gray; float:right; font-weight:100; font-size:12px;">delete</a>
    <a href="#" onclick="return false" onmousedown="editSongList(\''.$songid.'\', \''.$againList.'\');" style="margin-right:5px; color:gray; float:right; font-weight:100; font-size:12px;">edit</a></h4>'.$song_list.'<br /></span>';

If you need anything else let me know. Thanks!

  • 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-27T12:14:21+00:00Added an answer on May 27, 2026 at 12:14 pm

    Okay, so I figured it out and got it running. Thanks for all the help everyone!

    The problem seems to be that you must at least add the “stripslashes” function to a $_POST before you can place it into a javascript parameter otherwise, I seems like at every ‘\n’ it stops the function call and give the error “there is an unterminated string literal” meaning your last parameter does not have an ” ‘ ” at the end of it. I am not sure why though. If anyone has any insight, I would appreciate the learning experience.

    Thanks everyone!

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

Sidebar

Related Questions

I am having a strange problem, maybe something to do with Apache more than
having a strange issue, must be something I'm just not seeing. I set up
i'm having some really strange problem. i wrote a filemanager in PHP with the
I am having a strange problem with boolean logic. I must be doing something
I'm currently having a strange issue whereby all browsers except from Google Chrome are
I'm having a very strange output corruption on one of my PHP sites. Sometimes,
I'm having trouble with something that I thought would be easy... I can't get
I'm having trouble groking something in Linq - maybe someone can give me some
EDIT: It seems to be something with having the two queues in the same
At present I'm having to do something like this to build a Type definition

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.