This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.user_post_emails = function(req, res){ | |
var emails = []; | |
Mongoose_Collection.findOne({userId: req.user._id}, function(err, user){ | |
if(!user){ | |
emails[0] = req.body.emails; | |
new Mongoose_Collection({ | |
emails: emails, | |
userId:req.user._id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="countries"> | |
<option selected="selected" disabled="disalbed">Select Your Country</option> | |
<option value="china">China</option> | |
<option value="India">India</option> | |
<option value="Indonesia">Indonesia</option> | |
<option value="Pakistan">Pakistan</option> | |
<option value="Bangladesh">Bangladesh</option> | |
<option value="Japan">Japan</option> | |
<option value="Philippines">Philippines</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Applications/MAMP/Library/bin/mysql -u root -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the form code lives in app/design/frontend/yourtemplate/default/template/review/form.phtml | |
//in catalog.xml enable it with: | |
<block type="review/form" name="product.info.review_form" as="review_form" template="review/form.phtml"/> | |
<?php echo $this->getChildHtml('review_form'); ?> |
NewerOlder