Jump to content

send value to my email


wayoutwest

Recommended Posts

i'm trying to add PHP script to my order-address.tpl file.

 

I added this:

 

 

<div>

<p>

{if $_POST['formSubmit'] == "Submit"}

{

$varVIN = $_POST['formVIN'];

}

{/if}

enter something:

<input type="text" name="formVIN" maxlength="7" value="{$varVIN}">

</p>

</div>

 

 

I want that $varVIN value send to my email. i have tried to add something like this:

 

 

<div>

<form action="mailto:[email protected]">

<p>

{if $_POST['formSubmit'] == "Submit"}

{

$varVIN = $_POST['formVIN'];

}

{/if}

enter something:

<input type="text" name="formVIN" maxlength="7" value="{$varVIN}">

<input type="submit" value="Send" />

</p>

</form>

</div>

 

but it didnt work. i suppose that its because i'm trying to create form in another form.

this is few lines above---> <form action="{$link->getPageLink('order.php', true)}" method="post">

because when i press Send i linked to order.php and don't get any email.

 

Please help, any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...