, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

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: 625
 
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


FlexCMS v3.2 Has Been Released!
 

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

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




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

Processing Time: 0.12708 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS