|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
Drupal form not submitting
Submitted by gregory on Thu, 06/14/2007 - 06:24
When I update some content in drupal I get an error:
"The URL is not valid and cannot be loaded"
Bugga!!
New forum topics
- [MELB] Web Developer | Web Designer | Graphic Designer | Marketing Manager
- Open Source Online Invoicing Software
- Professional Drupal Consulting, Design & Development Services in Australia
- New Year Speacial-Professional Website for 400$ with doamin+Host
- Ruby on Rails Oceana
- WebDev/Design/Research/Consultant - PHP/MySql, Javascript, Joomla, HTML, Flash, AJAX
- Freelance ASP.NET Developer
- System Monitoring with Nagios
- Learning Ruby? What about the RubyMentor Project?
- Need a team
- JAOO Sydney/Brisbane 2009
- Get Your Business a Website for $399 ONLY !!!
- Concrete5: Another CMS!
- Manage The Cloud with Amazon Web Services
- Crystal Reports developer needed


I had that hassle. It's a quirk that I don't know the cause of. I had a fix somewhere here that involved replacing double foward slashes in the action attribute of the form.
I'll search for it soon but you could to a grep search for
<formand probably find where to fix it pretty easy.In includes/form.inc you'll see:
`return '<form '. $action . ' method="'. $element['#method'] .'" '. 'id="'. $element['#id'] .'"'. drupal_attributes($element['#attributes']) .">\n<div>". $element['#children'] ."\n</div></form>\n";
Change it to:
return '<form '. str_replace(\"//\", \"/\", $action) . ' method=\"'. $element['#method'] .'\" '. 'id=\"'. $element['#id'] .'\"'. drupal_attributes($element['#attributes']) .\">\n<div>\". $element['#children'] .\"\n</div></form>\n\";This is not the best way to fix it I am sure. But I got too much to do!
oh crap. all those escape thingys!
basically you change $action to : str_replace('\\', '\', $action);
Post new comment