lundi 13 avril 2015

use form input to send the data to an email while also navigating to google to perform the "search"

i wasn't sure how to best title this. but here is what is what i'm wanting to do:

i have internet explorer opening in kiosk mode to a landing page displaying a list of email providers.



  • gmail

  • yahoo

  • hotmail


i want to add another option that allows the user to input their email address (or something close) and it will act like a normal browser url area and take them to google search so they then access their email. i also want the input to be sent to a designated email so we can add the new email to the list of choices so users will decrease their need to use the "search" input.


from these two pages i found what i need to accomplish (in html) each task individually.


this opens the input to a google search page:

Is it possible to update a url link based on user text input



<form action="http://www.google.com/search" method="get">
<input type="text" name="q">
<button type="Submit">Search</button>
</form>


this sends an email with the input to an email

How do I code my submit button go to an email address [duplicate]



<form method="post" action="mailto:youremail@youremail.com" >
<input type="submit" value="Send Email" />
</form>


i have no experience in php and just a little with html form elements so, i was not sure if this would work:



<form action="http://www.google.com/search" method="get" method="post" action="mailto:youremail@youremail.com">
<input type="text" name="q">
<button type="Submit">Search</button>
</form>


or if you can even have a submit button perform two actions.


also, any tips on where to go to get the php code that would help me to accomplish my goal?


Aucun commentaire:

Enregistrer un commentaire