Cyto Posted October 28, 2010 Share Posted October 28, 2010 Hey, who can help? Example: I want to insert a row with a input and a select option. I am inserting now with select option, but i want to insert with a input too, because if i need to insert a link instead of choosing from select option. --------- (puts a link)Link: ...link... (chooses nothing)Select: Choose one... Submit --------- I need something like if LINK is filled insert it. Nothing happens to SELECT, but they have to have the same row names. Hope its clear enough. Cheers Link to comment https://forums.phpfreaks.com/topic/217063-insert-row/ Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 Actually, it isn't very clear at all . . . Link to comment https://forums.phpfreaks.com/topic/217063-insert-row/#findComment-1127357 Share on other sites More sharing options...
Cyto Posted October 28, 2010 Author Share Posted October 28, 2010 See it has: uploading a avatar, you can choose one of the list that the site provides or upload via a link and insert in the row with the same name of the 2 options. Link to comment https://forums.phpfreaks.com/topic/217063-insert-row/#findComment-1127360 Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 OK, I think I understand what you want now. When you validate the form, just check that the two fields don't both have a value when the form is submitted. If both fields have a value, notify the user to pick one from the select list, or enter a link, but not both. Link to comment https://forums.phpfreaks.com/topic/217063-insert-row/#findComment-1127367 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.