[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] Calling flypage from a form


> -----Original Message-----
> From: suppressed
> [mailto:suppressed Behalf Of Mike Heins
> Sent: 27 June 2003 14:34
> To: suppressed
> Subject: Re: [ic] Calling flypage from a form
> 
> It won't work.
> 
> But this will:
> 
> <form action="[area flypage]">
> <input type=text name=mv_arg>
> <input type=submit>
> </form>
> 
> Better:
> 
> [set scrub_arg]
> 	[calc]
> 		$Session->{arg} =~ s/^\s+//;
> 		$Session->{arg} =~ s/\s+$//;
> 		# If all of your part numbers are upper case
> 		# $Session->{arg} = uc $Session->{arg};
> 
> 		# If all of your part numbers are lower case
> 		$Session->{arg} = lc $Session->{arg};
> 
> 		## Any other things you might want to do
> 		return;
> 	[/calc]
> [/set]
> 
> <form action="[area flypage]">
> <input type=hidden name=mv_action value=back>
> <input type=hidden name=mv_click value=scrub_arg>
> <input type=text name=mv_arg>
> <input type=submit>
> </form>
> 
> You might have to set page_title a bit differently on flypage:
> 
> [tmp page_title]
> 	[if session arg]
> 		[description code="[data session arg]"]
> 	[else]
> 		[item-description]
> 	[/else]
> 	[/if]
> [/tmp]

Thanks Mike, that works fine!

Jamie


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.