, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

Home > FlexCMS Support Forum > User Help > Bug Reports & Enhancement Release Updates > Problem passing additional argument(s) to embeded scripts

FlexCMS Support Forum


Problem passing additional argument(s) to embeded scripts
Started September 24, 2005 @ 8:57pm by auctionzip
Post Message 
auctionzip


Posts: 1
 
Problem passing additional argument(s) to embeded scriptsSeptember 24, 2005 @ 8:57pm
This is a proposed fix for a bug I ran into using FlexCMS with an embedded script that passes an argument. The existing code strips the additonal argument in the following url and returns an "Error Displaying Page" message.

http://joe.sitecreator.auctionzip.com/index.php/pages/auction_calendar.html?az_feed_pos=http%3A//66.235.185.231/cgi-bin/auctionview.cgi%3Flid%3D79842%26feed%3D129%26kwd%3D

My proposed change to the index.php file to allow this and any other such script to work with your system is as follows:

// remove any .html from the end of the url
$QS = str_replace('.html?','/',$QS); // [DC Change]
$QS = str_replace('.html', '', $QS);
 

Last Edit: September 24, 2005 @ 8:57pm by auctionzip
DCSun
Administrator

Posts: 421
 
September 24, 2005 @ 10:55pm
Thanks for your suggestion. That does seem to be a good way to overcome that, and we'll work it into the next version.

If you wanted you could also pass the information with a form post and use the FlexCMS function "ReadFormArguments();" and after globalizing $FormArguments it would contain an array of the form contents by field name (ie: $FormArguments['field_name']). You could also use the standard FlexCMS query string format of separating the values with slashes and the data would appear in $QSPieces[3], $QSPieces[4], etc, however you would have problems using some special characters there.


David
 

Last Edit: September 24, 2005 @ 10:56pm by DCSun

Post Message 







All Contents, Code, Scripts and Technologies Copyright 2003-2007 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.17747 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!