Yes, it is Legal to buy certain prescription drugs online if they are located and Licensed in the USA. The questionaire is what the Doctor needs to know BEFORE giving you a prescription. To just write out prescriptions would be illegal.
Fioricet and gabapentin are not controlled subsctance, so it is Ok to get your orders online. But you must complete your questionnaires very carefully and honestly. Your IP address also maybe reordered to check whether you are a legal US nature man or woman.
Controlled substances are not allowed online. But some countries controlled some medicines but some other countries even list it as over the counter medicines. You must follow your own country’s law.