Jump to content

INSERT row


Cyto

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.