0

現時点の:

<input type="hidden" name="subject" value="| Website Owners Co. - Web Referral |" />

完璧な世界では、次は基本的に私がやりたいことです。

<input type="hidden" name="subject" value="| UserInput "Location" , UserInput "Date Set" |" />

フォーム自体で、ユーザーが設定した「場所」と、ユーザーが設定した「イベント日」を呼び出したいと思います。

あなたは本当にアイデアを得ることができます.フォームは. . .

イベントの日付 (ドロップダウン値) m/d/y
イベントの場所 (テキストフィールド)

このように、電子メールの [件名] 行を非静的にすることはできますか?

これは簡単にできますか?css/html 以外のコードはあまり得意ではありません。

4

1 に答える 1

0

You don't state what language for server side scripting you are using to process your form and it isn't tagged. If using PHP would suggest the following.

So, you want to submit a form, do some processing and then send an email using fields submitted in the form as the subject title?

In your form processing page just use something like the following using you are using method=POST and the field names are event_location and event_date. If you are creating the subject from the two submitted values you really do not need to submit subject as a hidden form field.

After the form is submitted you should be able to grab the contents of the two fields and then concatenate them together to create a new email subject variable.

$email_subject = $_POST['event_location']. ", ". $_POST['event_date']; 

In PHP it would be done this way. I guess it depends on how you are processing your form.

于 2013-01-07T14:31:29.717 に答える