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

  • Home
  • SEARCH
  • 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 9242235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:32:28+00:00 2026-06-18T08:32:28+00:00

This code is returning an input who’s value is the $value variable $value =

  • 0

This code is returning an input who’s value is the $value variable

$value = "Analytics: \r\n\r\n --------------------------------------------\r\n";
$value .= "Campaign Source: ".$campaign_source."\r\n";
$value .= "Campaign Name: ".$campaign_name."\r\n";
$value .= "Campaign Medium: ".$campaign_medium."\r\n";
$value .= "Campaign Term: ".$campaign_term."\r\n";
$value .= "Campaign Content: ".$campaign_content."\r\n\r\n";
$value .= "First visit: ".$first_visit."\r\n";
$value .= "Previous visit: ".$previous_visit."\r\n";
$value .= "Current visit: ".$current_visit_started."\r\n";
$value .= "Times visited: ".$times_visited;

if (!is_array($tag)) return '';

$name = $tag['name'];
if (empty($name)) return '';

// add the value to the form's hidden input 
$html = '<input type="hidden" name="' . $name . '" value="'. $value .'"/>'; 

return $html;

The last string in the $html variable "/> isn’t closing correctly in the rendered HTML and looks like some other type of double quote. You see in the image attached the double quote at the end of the input isn’t recognized, and it’s using the ending quote of the opening span tag. I tried replacing the $value variable in the $html variable with another single variable such as $times_visited and it rendered correctly. I think all the strings going into $value is throwing it off some how. Any ideas what’s wrong?

Thanks

enter image description here

  • 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-18T08:32:29+00:00Added an answer on June 18, 2026 at 8:32 am

    this will never work with a input. Even if you don’t have any issue with the double quotes I don’t think a value with newlines and <br> tags will work as an input value. You should either use a "<textarea style='display:none' name=\"name\">$value</textarea>" or use one <input> for each of the values you want to pass as hidden.

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

Sidebar

Related Questions

Possible Duplicate: Returning reference to a local variable I happened to find this code
I'm using CF 7 and this code is not returning any files: <cfset fileLocation
This Code: Something = new Guid() is returning: 00000000-0000-0000-0000-000000000000 all the time and I
I used this code for sending and returning result. <script type=text/javascript> $(document).ready(function() { $('.special').click(function(){
For some reason, this line of code is returning undefined for $(this).attr(href) $(a).attr(href, javascript:page('
One of my tables in my SQLite database is returning this error code below:
This code is returning blank array. I am posting to PHP script with code.
this is my code: askPointer = do input <- getLine let newInput = map
EDIT 1 I am getting courseID from this code: $coursesOutput = '<option value=></option>'; while($row
I've got this code, but it keeps returning random frequencies from 0 to about

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.