Skip to content

Instantly share code, notes, and snippets.

@walterdavis
Created March 4, 2011 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterdavis/854803 to your computer and use it in GitHub Desktop.
Save walterdavis/854803 to your computer and use it in GitHub Desktop.
var p = $('myName');
var f = p.up('form');
f.observe('submit', function(evt){
var next = 'http://www.myphotosession.com/';
if(p.present()){
evt.stop();
next += encodeURIComponent($F(p));
window.location.replace(next);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment