That would be my controller function I know it is totally wrong but dont know what tu put in there to be honest
def add():
form = SQLFORM(db.projects, _name='form_add')
if country in (countryt1)
redirect(URL('view', vars=dict(countryt1=countryt1))
return locals()
Well, maybe if you can mock up some screen shots showing what you want the user to see, we can provide less vague advice.
You may be wanting some extra buttons in your form besides the submit button.
BTW, if you're wanting the "country" variable to come from "form_add", you need to say something like
if form_add.vars.country in thesetofcountries:
If you're looking up the country in a database table, something like
countrydata = db.countryt1[db.countryt1.countryname == form_add.vars.country]
if countrydata:
and the paragrapsh following that.
/dps