Create Link "Subscribe" [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have magento commerce, and I am creating in html an automatic e-mail that is going to be sent when someone signs up (in Dreamweaver).
In the HTML code I have a button that is about subscribing in our newsletter. What is the code that I have to link to this image, so if someone clicks on it he will subscribe to the newsletter.
Thanks in advance,
Frank

The call goes to:
http://yourdomain.de/index.php/newsletter/subscriber/new/
But form data is sent via post as you can see in the Mage_Newsletter_SubscriberController newAction, where you find the following line of code.
$this->getRequest()->isPost() && $this->getRequest()->getPost('email')
So you need to name your form field 'email'
Good luck!
Edit:
Just use something like this:
<form action="http://yourdomain.com/index.php/newsletter/subscriber/new/" method="POST" id="newsletter-validate-detail">
<input type="text" class="input-text required-entry validate-email" name="email" id="newsletter">
<input type="image" src="path to image" name="submit" />
</form>

Related

HTML - Choose Between Languages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am horribly new in HTML and I want to implement a source code on HTML, which allows the user to choose content in different languages (basically EN and GER).
So far I found this to give the user the opportunity of choosing a language.
<form action="<?php echo $_SEVER['PHP_SELF'] ; ?>" method="POST">
<label><input type="radio" value="de" name="language"> DE</label>
<label><input type="radio" value="en" name="language"> EN</label>
<input type="submit" value="Ok" />
</form>
How can I add the text now?
So the user should be able to choose a language by putting a tick in a box or whatever and then only see the text in the chosen language.
Could u guys show me how to connect the selectable box with the texts?
Regards! Sascha
Is your question its just how to change text in different language this link could be a good starting point.

How do I log submissions? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I just want to log submissions to like a txt that I can look at in github, I want a submission form like: Password & email, then when you click okay, it logs it into like a txt file in github, with "email:password" format.. Anyone know how to do this? I would really appreciate it!
Here is my code so far:
<div class="shopping-input input-text">
<input type="text" placeholder="Enter your Minecraft username." name="username" maxlength="16">
</div>
<div class="shopping-continue element_button">
<div class="l"></div>
<div class="r"></div>
<div class="button_block">
<a>Continue</a>
</div>
</div>
From your comments, it seems as though you don't have much experience with forms or web development in general.
You say you want to "log" it to a text file. This is generally not the best idea, because text files are usually easily accessible and readable to the public. It's best to use a database instead.
However, to either use a text file or a database, you're going to need a server-side language that can interact with the server (such as files). The tagged languages "HTML" and "CSS" will not help you out with the form submission — they are client-side languages that help with the formatting of the page and only interact with the user to the browser, and cannot edit files.
PHP is an example of a server-side language. You should read up about it and file IO.
Assuming you do know how to use PHP, this would be a very simple example:
HTML FILE: index.html
<form action="action.php" method="post">
Enter your name here: <input name="name" type="text" />
<input type="submit" value="Submit" />
</form>
PHP FILE: action.php
<?php
$name = $_POST["name"];
$file_to_write = fopen("name_file.txt","w+");
fwrite($file_to_write, $name);
fclose($file_to_write);
?>

How to receive mails from Contact form? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I start to learn HTMl my self. Made a contact form and copied code block as:
<form id="ContactForm" action="">
<div>
<div class="wrapper">
<input type="text" class="input" >Your Name:<br>
</div>
<div class="wrapper">
<input type="text" class="input" >Your E-mail:<br>
</div>
<div class="wrapper">
<textarea name="textarea" cols="1" rows="1"></textarea>Your Message:<br>
</div>
Send
Clear
</div>
</form
The page show ok on browser, but the user cant send the form to my mail. I know may mail suppose be in somewhere on code,
What's missing?
Thanks
Haim Rodrik
The simplest way of sending an email from your form is to use the mailto: action:
<form id="ContactForm" action="mailto:your#email.com">
When the form is submitted (when the user clicks the Send button) the default email client would be invoked with your email address and the form fields pre filled in the email. The user can edit the email and send it of.
However, this is not a reliable solution and probably not what you are looking for. In order to send emails "in the background" you will have to add some server side code to do handle your requests, for example PHP. If you have a working PHP server installed you can read the examples on how to send email in this thread for example: How to send an email using PHP?

Extremelly Quick Start in HTML [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to make a HTML page with two components on it: Button and Edit. If I press on button then OpenDialogFile executes. After choosing a file, I want to see it's full path (f.e. "C:/temp_folder/superText.txt") inside my Edit.
<body>
<h1>FileCreator Page!</h1>
<form action="createCSV" method="get">
<input type="text" name="fileName" value="D:/">
<input type="file" value="Choose CSV" title="Choose"> <!-- title is not working-->
<input type="submit" value="Load file into DB">
</form>
<body>
Due to security reasons you can not set a value for an input type file tag.
Look at this thread for further information to this topic: set value for input type file
Also there is no attribute called "title", the text shown on the button is predifined by the browser and can not be changed.

I have a link that I want to open in a new tab. As it is in a <div> I am unsure how to do this - I am new to php coding [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
This is the code I currently have, that opens the link in the same page. I want to modify this to make it open in a new tab.
<div class="big-button" ">
<input type="submit" value="Link name" />
</div>
Use target="_blank" in your anchor
Use this :
<div class="big-button" ">
<input type="submit" value="Link name" />
</div>
I think you need this
<a href='URL' target='_blank'>xyz</a>
Give the your url as href attribute and give target attribute as _blank. It will open in new window
<input type="button" value="Click Me!" onclick="window.open('http://google.com')" />
Hint:
target="_blank" is not validate W3C.
Use this code in a tag:
onclick="window.open(this.href); return false;"