Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

static value in a form

Tags:

html

post

php

I have a form with list of fields :

  • last name
  • email
  • country
  • message

Before sending the form, i want to joint to it a static value : destination=marketing. i don't want it to be visible in my form. how would this be done ?

like image 424
grp15 Avatar asked Oct 27 '25 12:10

grp15


2 Answers

Input hidden is what you need :

<input type="hidden" name="destination" value="marketing" />
<input type="hidden" name="destination" value="marketing" />

or you can add this variable when you process the form server-side

like image 26
Anpher Avatar answered Oct 29 '25 04:10

Anpher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!