URL querystring with a php include

后端 未结 3 1984
太阳男子
太阳男子 2020-12-06 07:04

I\'m trying to include a file to output in a tab on a page. The file itself will pull up just fine, but when I try to add the required querystring to it, it gives me a \"fa

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 07:47

    I created a variable on the 2nd page - and passed it a value on the first page - and it worked for me:

    *Page with include: 'index.php'
     
    
    
    *Page included: 'includes/contactform.php'
    
     switch($type){
      case 'simple':
       //Do something simple
      break;
    
      default:
       //Do something else
      break;
     }
    

提交回复
热议问题