No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
35 Posted Topics
I know it's a dumb question, but I can't figure it out. What's wrong with this code? - [CODE]$progress_report = curdate();[/CODE] It doesn't work. Thank you! | |
I am totally new to the SEO world. I got a client though, for whom I am doing SEO. He has a laundry/dry clean/moving/shoe repair kind of business and a website for it. I have no idea how much I should charge him. Also I am not sure whether it … | |
I wasn't sure, in which forum to ask this question, so here goes: Could you guys recommend a very good web hosting company? Thank you in advance! | |
Re: This works for me: [CODE]//File upload // Where the file is going to be placed $target_path = "uploads/"; // Add the original filename to our target path. //Result is "uploads/filename.extension" $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } … | |
Here is what I have: [CODE]<script type="text/javascript" src="http://www.polycysticliverdisease.com/html/swfobject.js"></script> <div id="flashcontentab3445" align="center"> You probably do not have the Flash Player (<a href="http://get.adobe.com/flashplayer/">Get Adobe Flash Player Here</a>) installed for your browser or the video files are misplaced on your server!</div> <script type="text/javascript" src="http://www.polycysticliverdisease.com/html/easyflvsvab3445.js"></script>[/CODE] Here is the .flv file: polycysticliverdisease.com/html/debbie.flv How do I … | |
I'm trying to pass a value from a select input control on an HTML form. Here is the PHP of page1.php: session_start(); $_SESSION['invtype'] = $invtype; header("location: offerform_switch.php"); Here is the HTML: <select id="invtype" name="invtype"> <option value="0" selected="selected">Select type</option> <option value="product">PRODUCT</option> <option value="software">SOFTWARE</option> </select> This is offerform_switch.php: session_start(); echo $_SESSION['invtype']; switch … | |
I've never used any CMS as a developer. Now I think it's time for me to start getting familiar with them. There are three out there I laid my eye on - WordPress, Joomla!, Drupal. Which one should I begin with? Thank you! | |
I'm trying to obtain the font-weight somewhat between normal and bold. Or bold and even bolder. Nothing seems to work. When I try numeric values, 590 shows as normal text and 600 is full bold. Nothing in between. Please advise. Thank you! | |
Here is my php: [CODE]<?php $confirm = $_POST['confirm']; if(($_POST['confirm'] == 'Y') {header("Location: http://mysite.com/sage/page1.php");} else {header("Location: http://mysite.com/sage/disagree.html");} ?>[/CODE] Here is the HTML: [CODE]<form id="form" action="terms_redirect.php" method="post"> <table id = "radio"> <tr> <td> <input type="radio" id="agree" name="confirm" value="Y" /> </td> <td> <label for="agree">I have read and agree to the Terms and Conditions</label> … | |
Let's say a user submitted some information through a form into a MySQL database. The data was timestamped. The user is given a certain number of days to submit an additional chunk of data into the database. If he doesn't submit it by the required date, an email has to … | |
I have four buttons in an HTML form. Here is the HTML: [CODE]<tr> <td> <div class="fileinputs"> <input type="submit" name="submit" class="submit" /> </div> <div class="fileinputs"> <input type="file" class="file" name="uploadedfile" /> <div class="fakefile"> <img src="uf_btt.png" /> </div> </div> <div class="fileinputs"> <input type="reset" class="reset" /> </div> <div class="fileinputs"> <input type="button" class="print" onclick="window.print()" /> … | |
Can't figure out this one. Text I enter into my textarea, doesn't break the lines. CSS: [CODE]#description{ float:right; font-size:12px; padding:4px 2px; border:solid 1px #afd45a; width:260px; height: 90px; margin:0px 20px 20px 6px; }[/CODE] HTML: [CODE]<input type="textarea" name="description" id="description" rows = "4" cols = "25"/>[/CODE] | |
Here is a problem. I have an HTML form with several fields in it. One of the fields - 'Upload file'. When I upload a file, everything works properly. But when I choose to submit the form without a file, it gives me the error message: "There was an error … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] What could it be? Thank … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] The two machines use different … | |
Here is my HTML:[CODE] <tr> <td> <div class="fileinputs"> <input type="submit" name="submit" class="submit" /> </div> <div class="fileinputs"> <input type="file" class="file" name="uploadedfile" /> <div class="fakefile"> <img src="uf_btt.png" /> </div> </div> <div class="fileinputs"> <input type="reset" class="reset" /> </div> <div class="fileinputs"> <input type="button" class="print" onclick="window.print()" /> </div> </td> </tr>[/CODE] And here is my CSS: … | |
I am able to attach a file using SwiftMailer with its name hardcoded. But what if the file is uploaded by a user from an HTML form's 'file' input type control and has to be sent with an email by a PHP script? How do I specify the file name … | |
I am an absolute newbie to SEO. Is it possible to get your website ranked well in Google with a very low budget? Would the pay-per-click be necessary, for instance? Thank you in advance. | |
As far as I know, the 'image' input type can only be used for a 'submit' button. How do I make 'reset', 'print' and 'upload file' buttons on my form contain an certain image in them instead of being generic gray HTML buttons? I gathered that I would need JavaScript … | |
Let's say I have a form with 'file' type input control on it among other input controls. My PHP emails the submitted form data somewhere. As far as I know, in order to attach an uploaded from the form file to the email, I have to save it first in … | |
I'm absolutely new to JavaScript, so I don't know quite well what I'm doing. Does this look right (inside of HTML)? - [CODE]<script type="text/javascript" src="/path/to/si.files.js"> window.onload=SI.Files.stylizeAll(); </script>[/CODE] And what is si.files.js? Is it a file I have to create and place into some directory? What is supposed to be in … | |
Could somebody please direct me? Why the code is not working? Let's say I have two scripts: mypage.php and mypage2.php. mypage.php: [CODE]<?php // this starts the session session_start(); // this sets variables in the session $_SESSION['color']='red'; $_SESSION['size']='small'; $_SESSION['shape']='round'; print "Done"; ?>[/CODE] Works as expected, outputs "Done". mypage2.php: [CODE]<?php // this … | |
I have a form on page1.php. The form action is "page1.php". After some sanitation and validation takes place and there are no errors, when a user clicks the submit button, I need the page be redirected and a variable passed to the destination page. The redirection is done with this … | |
I have a textbox on my form. I type in some text, then I submit the form, and it seems that my script doesn't see the text in the input element and treats it like empty: [CODE] <?php $invname = $_POST['invname']; if($invname == '') {print "You have not entered the … | |
[CODE]if($firstname == '') {print "You have not entered your first name, please go back and try again.";}[/CODE] How do I make the text look like the entire site? Or even better - is it possible to get a popup window on this instead of opening a full sized page? Thank … ![]() | |
Here is my problem: I have a checkbox and text input elements inside the same ID. I need checkbox to be 20px wide and textbox - 200px wide. I have this: [CODE]#check input { float:left; border:solid 1px #afd45a; width:20px; margin:2px 10px 10px 6px; }[/CODE] What's my solution should be for … | |
Hi guys! Can't figure out why this is not working: [CODE]<div id = "calendar"> <script language="javascript"> document.write(TODAY); </script> </div>[/CODE] Here is the CSS: [CODE]#calendar { width: 956px; height: 15px; float: right; color: #ffffff; background-color: #036779; padding-top: 5px; padding-bottom: 5px; padding-left: 2px; padding-right: 2px; text-align: right; }[/CODE] The text doesn't show. … | |
I've read some articles and forums on the topic, but still hasn't gotten a clear answer for myself... What I need is my incoming emails to be stored in my MySQL database. I understand that the email has somehow be submitted to a PHP script that will handle it further, … | |
Let's say I have an HTML form and there is a group of radio buttons. A need different script to be run depending on which button is checked. Let's say I have this: [CODE]<input type="radio" name="invtype" value="product"> <b>PRODUCT<b> <p> <input type="radio" name="invtype" value="software"> <b>SOFTWARE<b> <p> <input type="radio" name="invtype" value="service"> <b>SERVICE<b> … ![]() | |
I have two HTML pages, each has a form. The user is supposed to fill out the input fields in one, then click a submit button that will send him to the next page, where he would fill out the rest of the fields of his questionaire, click a submit … | |
I retrieve three pieces of data from my MySQL table and need to pass one of them as a parameter in a link to a dynamically populated .php page and two of them use as the link text. The echo statement below is not working. Could you please see what's … | |
Here is my code: [CODE] <?php $connection = mysql_connect("myserver.com","myuser","mypassword") or die ("Couldn't connect to server."); $db = mysql_select_db("mydb", $connection) or die ("Couldn't select database."); $search=$_POST['search']; $data = "SELECT firstname, lastname, task FROM inventors WHERE taskdate - curdate() = 1"; $query = mysql_query($data) or die("Couldn't execute query. ". mysql_error()); $data2 = … | |
I have an HTML form with three dropdown selects: month, day and year. I have four fields in my MySQL table: month, day, year, and date. The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. I write this in my … | |
I tripped on this one. I have an HTML form that has all kinds of input elements - text, textarea, radio buttons and checkboxes. I have no problem inserting or updating data in MySQL DB from the HTML form. But when I want to display what is already in the … | |
How do you declare your select menu in the PHP? Does it have to be an array of variables? One single variable? Something else? Let's say this one: [CODE] <select name="search" title="Search Criteria"> <option value="id">ID Status</option> <option value="ip">IP Status</option> <option value="pd">PD Status</option> <option value="nva">NVA Status</option> </select> [/CODE] Thank you! |
The End.