I am going to look into that, by any chance do you still have the source code that you used in solving this question a year ago?
I was told to look into fputcsv but i didn't realize explode was needed... Well good thing I'm still learning :)
,profile,member posts,community,member,user,poster,contributor,blogger,author,writer">
I am going to look into that, by any chance do you still have the source code that you used in solving this question a year ago?
I was told to look into fputcsv but i didn't realize explode was needed... Well good thing I'm still learning :)
Can you guide me through it, specifically what do I change in order to change the height. And why isn't it recommended to change the dimensions?
Can someone guide me through an easy way of shrinking the size reCAPTCHA form, I can't find much great results on google (even found a result saying its not the best idea)...
I will send you the link to my page if you need to see what I mean.
I have a reCAPTCHA form and for some odd reason, the input field is probably 2px in height... I think something in php messed that up... can someone help me with possible solutions...
I will post my php if needed and send you the link to the page for better understanding.
I am sorry, but i think i am just misreading this but where specifically would you put this:
<form>
<?php print (isset($errors) ? $errors : ''); ?><br />
<input></input>
</form>
And i will be sure to make some time to organize my files, I've got a lot of things on my plate in the moment but I will make sure that organizing my files is a completed task :).
You can always build a site like that, but the concern is that can you make a site like that operate... (So yeah it is possible)
Well in general, if someone hacks you... you must report them to the police, espicially if they toy around with your money and important data in your computers/devices.
Sorry, your question is very hard to understand
I just noticed were both in highschool :), except I just started High School :)
You should know how to use PHP and MySQL (ofcourse you should know HTML, jQuery, CSS, etc.) for your version 1 of your site, then you can expand using other languages, but those 2 languages are a big plus in developing a functional website.
I was researching and I noticed an fopen function, is that any good?
well, the problem is the fact that the message always appears... right when you enter the page, you see error message on top left of site... shall I send you the link so you can preview yourself?
jQuery is a very fun and interesting language, it can be extremely extroadinary or a complete pain if you make mistakes (I learned that if your organized and make comments, you'd never mess up as much)...
There are many online sources for learning jQuery, but honestly, my preference is books.
Also, to always remember everything, make example files and review them yet use them. If your confident that they are great, you should post them on an example sight, so other new jquery learners can learn from your works.
regards to my last comment,
(You may mark this question solved if it satisfies your needs)
I thought you were Eggstraordinary...
But then again, always ask questions and sources like <DANIWEB> will always help you solve your issues!
How do i store valid form inputs in a csv file? I am not sure how to start, but I know that php and mysql is involved.
There should be a new study stating that the internet makes most users dumber...
If something shows up, I'm sure FB will try to buy it... remember instagramm?
You can't kill Google that easily, the worst you do is wreck their Androids... besides its nearly impossible to overrun something with such powerful foundations plus their quick advancement in tech...
Both are good, but FB attracts more attention for most people...
Well, it was stored in your google account, so since you unlinked it... google abandoned the data with it....
Why would you unlink in the first place... for crying out loud, doesn't google own youtube?
I think its possible to relink and recover... but i would depend on that..
Kayak, Orbitz, Hotels, Expedia, Google, Yelp (i think it'll work), Travelocity, Priceline i think works... those are some big ones...
Your welcome :)
And for a further and future notice, keep your files and code neat and organized... it'll be a major pain for you to make changes if you don't recall what's going on... so organize as you go and make many comments in your code so you don't forget :)
(You may mark this question solved if it satisfies your needs)
Sorry, I updated the page, i now get the messages but it doesn't display properly, may you look again?
Well one thing I can obviously tell you is that it is supposed to make like easier...
I have an error message that is supposed to show if you forget to finish filling out the captcha form, but unfortunatly it shows on the very top of my site right when you enter the page... I don't want it to do that... I want the error messages to show after you fill the form out and submit.
Here is my php code that is responsible for the messages:
<?php
require_once('recaptchalib.php');
$privatekey = "my_private_captcha_key";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
echo "Sorry, your inquiry failed to submit. Please revise your inquiry and resubmit.";
} else {
echo"Thank you, your inquiry has been recieved! We will review it and get back to you as soon as possible!";
}
?>
Your probably overwriting the code with something else, so go over it again.
I've read that link before...
Here is my code:
<?php
require_once('recaptchalib.php');
$privatekey = "";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
echo "Sorry, your inquiry failed to submit. Please revise your inquiry and resubmit.";
} else {
echo"Thank you, your inquiry has been recieved! We will review it and get back to you as soon as possible!";
}
?>
<html>
<script type="text/javascript">
function MM_validateForm() { //v4.0
if (document.getElementById){
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
} }
</script>
<body> <!-- the body tag is required or the CAPTCHA may not show on some browsers -->
<!-- your HTML content -->
<input name="name" type="text" id="name" onBlur="MM_validateForm('name','','R','email','','RisEmail','subject','','R','message','','R');return document.MM_returnValue" size="55" placeholder="Name"><br>
<input name="email" type="text" id="email" size="55" placeholder="Email"><br>
<input name="subject" type="text" id="subject" size="55" placeholder="Phone"><br>
<label>Message</label><br>
<textarea name="message" id="message" rows="4" cols="40"></textarea><br>
<form action="" method="post">
<form method="post" action="recaptcha.php">
<?php
require_once('recaptchalib.php');
$publickey = ""; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>
<input type="submit" name="submit1" value="Submit" />
</form>
<!-- more of …
I am using reCaptcha and for some odd reason, I keep getting this error:
is_valid) { echo "You got it!"; } else { # set the error code so that we can display it $error = $resp->error; } } echo recaptcha_get_html($publickey, $error); ?>
Can someone explain to me what is wrong?
I sent you the link to my page, I am not sure if the code executed properly
Shall I send you the link to the page so you can observe as well?
Well so far, it doesn't redirect you to a new page (which is what I want), but I don't get a message... why is that?
I came up with the thought of not redirecting users to a new page because the contact form is going to be on every page (on the menu) and I don't want them to leave the pages they currently were on... So maybe I should put a message saying "Thank You For Submitting" after they submit the form (so they don't leave the page).
Anyways of doing that, I kind of need help with that because I can't find anything great off of google searches...
Wow thanks you guys, the information helped a lot!
Here is what I ended up using:
$url= "http://somewebpage.com";
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
But I began to think again, it doesn't look great when you get redirected to a new page. So my new thinking is how do you keep the user on the same page after they submit the form because normally if you submit, it'd take you to a blank page with a message on it... so maybe display a message on the form saying, "Thank you for submitting"? Can someone assist me with this next part?
So far, thanks for helping me out guys, now lets see if you guys can help me with phase 2!
I wrote a php contact form but I can't figure out how to redirect a user to a different page...
Here is my code:
<?php
if($_POST){
$name = $_POST['name']; //gets the entered name
$email = $_POST['email']; //gets the entered email address
$subject = $_POST['subject']; //gets the subject
$message = $_POST['message']; //gets the entered message
$headers = "From: $email \n"; //Set from email address
$to = "email@gmail.com"; //Set email address
//validating the fields if any empty
if($name != "" && $email != "" && $subject != "" && $message != ""){
mail($to,$subject,$message,$headers); //calling php mail function
} else
{
echo "Please fill in all fields and submit again!";
}
}
?>
<?php
$email_from = 'email@gmail.com.com';
$email_subject = "New Form submission - $subject"; // Change the message subject here
$email_body = "You have received a new message from $name ($phone) .\n Here is the message:\n $message. His/Her full contact information is: \n $name \n $email \n 1$phone.";
// Send The Email
$to = "email@gmail.com"; // Set valid email address to send the form to
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: $visitor_email \r\n";
mail($to,$email_subject,$email_body,$headers);
?>
Sorry i didn't wikipedia it honestly.... i google imaged it :)
oh, now I see what you mean (I was going the wrong direction)...
Well i made a google search and found quite a few:
Click Here, Click Here,Click Here... Those are a few I found with a google search...
I can't promise you which is the best... I don't use them, so i'll let you decide on that :)
I am a bit aware of that, but I think I need some more explanations.... even though you say you know zero about PHP, you still know more than me :)
This website, google, and actually to be honest with you just take each one of those topics and put them on the search on the site or the search on Google, 95% of time you get the answer you understand and are looking for!
I'm sorry, but even with you description, its still a little unclear... but I'll still take my go at it...
So your trying to use a architecture software to do a presentation on?
I don't think this post should be posted here, but it's a contact form with php :)...
Anyways, I have a question about styling the email notifications you get after submitting a form.... I can't style it based off of my code... Can someone help me...?
This is my code... and apparently I can't style the emails...
CSS:
#stylized {
position:absolute;
z-index:1;
left: 22px;
top: 8px;
}
body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
.myform{
margin:0 auto;
width:330px;
padding:14px;
height: 200px;
}
#stylized{
border:solid 1px #5c6063;
background: #EAEAEA;
}
#stylized h1 {
font-size:12px;
margin-bottom:8px;
}
#stylized label{
display:block;
text-align:left;
width:140px;
float:left;
left: 10px;
}
#stylized .small{
color:#666666;
display:block;
font-size:11px;
font-weight:normal;
text-align:right;
width:140px;
}
#stylized input{
float:left;
font-size:12px;
padding:4px 2px;
border:solid 1px #aacfe4;
width:200px;
margin:2px 0 20px -65px;
height: 20px;
}
#stylized button{
clear:both;
margin-left:150px;
width:125px;
height:31px;
background:#666666 no-repeat;
text-align:center;
line-height:31px;
color:#FFFFFF;
font-size:11px;
font-weight:bold;
}
.disclaimer {
color: #CCC;
}
.disclaimer_dark {
color: #666;
}
HTML:
<div id="stylized" class="myform">
<form id="form" name="form" method="post" action="index.html">
<h1>Contact Us</h1>
<label>Name*</label>
<input type="text" name="name" id="name" />
<label> Email*</label>
<input type="text" name="email" id="email" />
<label>Comments
</label>
<input type="text" textarea name="comment" id="comment"></textarea>
<button type="submit">Contact Us</button>
<div class="spacer"></div>
</form>
</div>
PHP:
<?php
$to = '[michael21291024@gmail.com]';
//Clean data
$name = strip_tags(trim($_POST[name]));
$email = strip_tags(trim($_POST[email]));
$comment = strip_tags(trim($_POST[comment]));
////
$subject = "New form submitted";
$message = $name . "has submitted a form\n";
$message .= "Email address " . $email"\n";
$message .= "Comment: " . $comment; …
autodesk is probably the most well known for their great architecture software:
Here is a link to one of their products:
http://usa.autodesk.com/autocad/
Looks doesn't mean its functional...
So who is the millionth user?
I don't post the link because of a personal business matter... it'll look bad if a developer didn't know how to solve problems most of the time...
karthikreddy509, That's a good accordion, but that's not like mine.... shall i send you the link so see what kind i mean?
I wrote an accordion menu, and for some odd reason, the arrow that shows you which link you hovered over won't show on the browser.
Unfortunately I can't post my code properly because there is a lot and it could be overwritten by something else....
I will send you guys the link :)
Freshlife theme looks a lot more nicer... but I think you should get neither one... your not going to have much control over it... You want to be able to write your own theme because you won't understand someone else's code... The way they write something will be different than what you will see...
By the way, they both look like they were made using the Pagelines theme...
I have a slider and for some odd reason after all the images slide across (they slide perfectly at first) they begin to show a little bit of the previous image (this is the second rotation)...
So how do I get it to stop doing that?
Can someone help me with this flaw... I may have to rephrase this, but that's what bugs me...
Here is my jQuery code:
$(window).load(function() {
var slideContainer = $('#slider_container'), slidesHolder = $(slideContainer).children(), slideWidth = slideContainer.width(), slidePos = 0, slides = $(slidesHolder).children(), slideTotal = slides.length, currentSlide = 0, delay = 3000, slideTime = 700;
$(slideContainer).css({
'overflow':'hidden',
'position': 'relative'
});
$(slidesHolder).css({
'position': 'absolute'
});
for (var i = 0; i < slides.length; i++) {
$(slides[i]).css({
'position': 'absolute',
'top': '0',
'left': slidePos + 'px'
});
slidePos = slidePos + slideWidth;
}
$(slidesHolder).css('width', slidePos + slideWidth);
$(slides).first().clone().css({
'left': slidePos + 'px'
}).appendTo(slidesHolder);
function animate() {
$(slidesHolder).delay(delay).animate({
left: '-=' + slideWidth
}, slideTime, function() {
if (currentSlide < slideTotal - 1) {
currentSlide++;
animate();
} else {
$(slidesHolder).css({
'left': 0
});
currentSlide = 0;
animate();
}
});
}
animate();
});
Sorry pritaeas, I got it to work.... for some odd reason... I can't have too many pictures...
Thanks for helping out!
so it works with 3 images, but how come it doesn't work when i have over 20 images...? could be because my site is overrunning it?
Shall i send you the link so you can see?
Sorry for my extremely late response...
I tried adjusting the z-index's... but it doesn't work... (so i set it back to what it used to be until i can fix this flaw)
But what i do get though is a hover, but only in a small portion of the logo
That's awesome, did you manage to see what was the flaw?