search

Home  >  Q&A  >  body text

The column ID and user ID are not selected on the article publishing page. How to make the association?

## model car factory

# 辆

Transport***

yuan/ton

Departure date

Vehicle source tag

Remarks

           

Contact

***

Post

1.png2.png3.png

###
2248 days ago1348

reply all(2)I'll reply

  • 西门大官人

    西门大官人2018-12-05 11:12:32

    1. The user ID should not be selected. After logging in, it is saved in the session or in a cache such as redis. Just add it when saving the article.

    2. There is no need to select the column. When the user clicks on the "Logistics ***", "Logistics Vehicle Source" and other columns to enter the publishing page, the cid can be passed to the article publishing page through the URL parameter. Then use <input type="hidden" name="cid" value="cid value"/> to record on the article publishing page. When submitting the article, the cid will be submitted to the background together. Just receive and save in the background

    reply
    0
  • Session::set('user_id',$user_id); No idea

    · 2018-12-05 12:21:35
  • Cancelreply