Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8801599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:52:35+00:00 2026-06-14T00:52:35+00:00

I have a form on my view with 2 fields. The user clicks on

  • 0

I have a form on my view with 2 fields. The user clicks on the submit button and some data will be queried specific to that user and the data they entered into the form.
The user’s email address is passed on the URL. (e.g. ActionName?user_email=yaddd@yyy.com)
I need to collect the form data and the email from the URL and pass it into my controller.

I need the data to query from my database and display a message to the user.

I can’t find any good links or sites regarding this issue.

This is what I have tried so far:

    [HttpPost]
    public ActionResult Collect(String s1, String s2, string user_email)
    {}
    and 
    [HttpPost]
    public ActionResult Collect(FormCollection fm, string user_email)
    {}

They don’t seem to collect the form data at all. What do you suggest?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:52:37+00:00Added an answer on June 14, 2026 at 12:52 am

    Have you considered using model binding? Ideally, I would use model binding for the data you are sending in the form and use parameters on action for the querystrings. So in your case I would define a model like below

    public class MyModel
    {
        public string S1 {get; set;}
        public string S1 {get; set;}
    }
    

    And then define the action as

    [HttpPost]
    public ActionResult Collect(MyModel model, string user_email)
    {
    }
    

    This has always worked for me. Give it a try and let me know if it does not work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data-entry form that displays a number of fields (mostly p:inputText )
I have an MVC form that contains some fields that are not related to
I have an activity - a form with some TextFields and the user clicks
I have two form fields on my view page, a date input (with a
I have a sub form that looks like a datasheet view. It returns prices
if i have created a view model and have a partial form that is
A User clicks on 'View Users' and the php logic fetches the data using
I have a form in my view page.it contains 5 text boxes,one search button.while
I have a partial view with a form in it that I place on
I have a form view which people use to update a record in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.