iggy407
-
Posts
5 -
Joined
-
Last visited
Posts posted by iggy407
-
-
Thank you very much that solved the problem.
-
I am new to php and I have a form on my website, the form works correctly the only issue is with the variable $message it gives me all the information from the form as one long sentence and I want to break up each question as a new line, but can't seem to solve this any idea's...
$firstname= $_POST['firstname']; $lastname= $_POST['lastname']; $email= $_POST['email']; $from=$_POST["confirmemail"]; $phonenumber= $_POST["phonenumber"]; $message="First Name: $firstname". "Last Name: $lastname". "Email: $email". "Phone number: $phonenumber"; mail("hernandez40724@gmail.com","Tenant-Buyer Form",$message,"From: $from \n"); echo "Message Sent";
-
I recently downloaded the wampserver package and have PHP and MYSQL running on my localhost, I have also downloaded codeigniter and I have been trying to upload it to my server but I have no idea how to and my Dreamweaver is not recognizing it, any help would be appreciated...
-
ok thank you.. the $_POST was what i needed, just fixed the problem
-
I have a textbox which i want users to be able to search the database for zipcodes, I can't seem to make it work my IDE doesn't show any errors but when I test the code everything goes blank, the mysql credentials are all correct the code is, any suggestions would help
<form action="index.php" method="post">
<label for="search2" style="color:#FFF;background-color:#0A016D"><b>Search Homes by Zipcode</b></label><br>
zipcode: <input type="text" name="zipcode"><br>
<button type="submit" name="submit" value="submit"/>
</form>
<?php
$zipcode= @$_post['zipcode'];
require("myconn.php");
mysql_select_db("phplogin")or die(mysql_error());
$sql= mysql_query("SELECT * FROM users WHERE zipcode='$zipcode' ");
$numrow= mysql_num_rows($sql);
while($row= mysql_fetch_assoc($sql))
{
echo "zipcode: ".$row['zipcode']." city :".$row['city']."<br/>";
}
?>
hello everyone
in Introductions
Posted
I am iggy, I program in c#.net and began coding about 10 years ago. I been coming to these forums for a couple of years and just now registered.