Advertisement

09.23.2008 at 03:05PM PDT, ID: 23756795
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Removing Mystery Backslash

Asked by akiles99 in PHP Scripting Language

I have a custom module that is essentially a form that takes data from logged in clients and submits it to the sites database. Since Ive migrated from one host to another though clients have been unable to use the form. They can enter the data but when the press submit it redirects to the wrong page and the data is not entered in the database.

By using firebug for firefox (which allows you to temporarily change code on the fly for a live site), I was able to figure out that the problem is due to an additional backslash being added to the submit url. Sounds simple enough but I cannot for the life of me figure out how to remove the additional backslash. For example, when I look at the source via firebug, I see this as the submit action: Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<form action="http://mysite.com//mytraining/submit/wyN7FfFJWa/" method="post">
 
If I leave it as is, the form does not submit the data and it redirects the user to the main index page. If I use firebug and change the submit action to
<form action="http://mysite.com/mytraining/submit/wyN7FfFJWa/" method="post">
 
with only 1 backslash it works perfectly.
 
The problem is I cant figure out how to permanently remove the second backslash. In the pertinent template the relevant code says this:
{exp:hpc_client_training:form_details form_hash="{segment_3}"}<h2>{form_title}</h2>{/exp:hpc_client_training:form_details}
 
{exp:hpc_client_training:submit form_hash="{segment_3}" redirect="/mytraining/report/{segment_3}/"}
 
Ive attached the actual module since posting the relevant code exceeded the post length restrictions.
 
This seems like such a minor problem and Ive looked around for hours now but havent been able to find where that second backslash is coming from as it doesnt appear anywhere else on the site. If any one can take a look I would REALLY appreciate it.
Attachments:
[+][-]09.23.2008 at 03:10PM PDT, ID: 22554705

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 03:28PM PDT, ID: 22554818

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 04:01PM PDT, ID: 22554981

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 08:21PM PDT, ID: 22556415

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 09:50PM PDT, ID: 22556829

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:26PM PDT, ID: 22557011

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:32PM PDT, ID: 22557044

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:33PM PDT, ID: 22557049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:48PM PDT, ID: 22557103

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:55PM PDT, ID: 22557123

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Sign Up Now!
Solution Provided By: khaledf
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.23.2008 at 11:04PM PDT, ID: 22557152

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 10:01PM PDT, ID: 22576698

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628