How to add subid to link from php variable?

by 3 replies
4
Hey guys,

I am no programmer just know how to edit parts of code when I am told where and what.

What I want to do is capture a promo code and when the user clicks on the button that would normally be the "sent" or whatever button in a contact form he or she should be redirected to a predefined link, which gets now the promo code as subid...

So if the user was to enter 123 as the promocode and the domain was test.com
he should be redirected to test.com/subid=123

Can anybody help me with this?
#programming #add #link #php #subid #variable
  • You need a form that uses conditional logic such as gravity forms. There may be others with c-logic, but it's really hard to beat gravity forms, and non of the free ones match it, besides it's cheap.
    This article will get you in the right direction.
    Basically you need to redirect visitor submissions using conditional logic to a certain page depending on what was entered.
  • I think you have to do this correlation with the database
  • Can fix it for you real quick. just PM me...

Next Topics on Trending Feed