[ic] Calling flypage from a form

Jamie Neil interchange-users@icdevgroup.org
Fri Jun 27 10:28:00 2003


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Mike Heins
> Sent: 27 June 2003 14:34
> To: interchange-users@icdevgroup.org
> 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