How Build Html form ? Programming by Kirubel_2 …; <input type="text" name="lastname" placeholder="Enter Your lastname"> </div> <div… lblMessage Need to Retrieve FirstName and LastName code-behind Programming Software Development by codewar … txtFirstName.Text = (string)Session["FirstName"]; string lastName = (string)Session["FirstName"]; //my thoughts on …should be replaced with ["LastName"] if (lastName != null) txtLastName.Text = (string)Session["LastName"]; txtFirstName.Focus(); }… Re: lblMessage Need to Retrieve FirstName and LastName code-behind Programming Software Development by chriswelborn Are you sure that `Session["LastName"]` is being set properly in the first place? I mean the cookie is being set properly? I think the only reason your new code wouldn't work is if `Session["LastName"]` is `null`. And yes, the `string lastName = (string)Session["LastName"];` replacement would be correct. Re: lblMessage Need to Retrieve FirstName and LastName code-behind Programming Software Development by JorgeM Yes line 14 should be LastName. It maybe null or could be an empty string as … this to see what the results are... if (string.IsNullOrWhiteSpace(lastname)) txtLastName.Text = "oops"; This will test if the… Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by broj1 …) $firstname = mysql_real_escape_string($_POST[firstname]); $lastname = mysql_real_escape_string($_POST[lastname]); // then use escaped values in your… $sql="INSERT INTO users(firstname, lastname) VALUES ('$firstname','$lastname')"; ... ... mysql_close($con); } … Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by SirMahlon …exist if(isset($_POST['firstname']) && isset($_POST['lastname'])) { $con = mysql_connect("localhost","root… SQL injection) $firstname = mysql_real_escape_string($_POST['firstname']); $lastname = mysql_real_escape_string($_POST['lastname']); // then use escaped values in your query $… $sql = "SELECT Id, FirstName, LastName FROM mydb"; doesn`t work Programming Web Development by Latrell_vie …echo "Connected successfully" $sql = "SELECT Id, FirstName, LastName FROM mydb"; $result = $conn->query($sql); ?> after…echo "Connected successfully" $sql = "SELECT Id, FirstName, LastName FROM mydb"; $result = $conn->query($sql); if ($result… error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by SirMahlon …", $con); $sql="INSERT INTO users(firstname, lastname) VALUES ('$_POST[firstname]','$_POST[lastname]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error… Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by broj1 Sory, my mistake, forgot the quotes in array indexes. This is correct: $firstname = mysql_real_escape_string($_POST['firstname']); $lastname = mysql_real_escape_string($_POST['lastname']); Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by broj1 … your original post): die("INSERT INTO users(firstname, lastname) VALUES ('$firstname','$lastname')"); This will display the constructed query and stop… Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by broj1 …;<br><br> Lastname: <input type="text" name="lastname" /><br><… Re: $sql = "SELECT Id, FirstName, LastName FROM mydb"; doesn`t work Programming Web Development by PsychicTide …->execute(); $result->store_result(); $result->bind_result($id, $FirstName, $LastName); while ($result->fetch()) { # some random output here... } $count = $result… Re: JButton, states Welcome, FirstName & LastName Programming Software Development by justindill …; public class Now extends JFrame { //Create text fields for FirstName, LastName, and Age private JTextField jtfFirstName = new JTextField(); private JTextField jtfLastName…, I need help pulling the values from the FirstName and LastName textfields to output once the user hits the Welcome button… Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by SirMahlon if(isset($_POST[firstname]) and isset($_POST[lastname])) { Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by broj1 OK, the quotes are missing in this line also. Try: if(isset($_POST['firstname']) && isset($_POST['lastname'])) { Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by SirMahlon …="fname" /><br><br> Lastname: <input type="text" name="lname"… Re: error inserting data.undefined index firstname/lastname on line 14 Programming Web Development by SirMahlon …="fname" /><br><br> Lastname: <input type="text" name="lname"… Converting First Letter in Uppercase i.e Firstname and Lastname Programming Software Development by geetajlo Hi i want to convert only the first letter of a firstname n his lastname seperating by a space. Note every time he/she input firstname the first letter should be Uppercase and when she/he press the space bar the last name only the first letter should be Uppercase. Help Me Plzzzz Ex: Geeta Lopez pull firstname and lastname from database Programming Web Development by freshfitz … = Application["activeUsers"].ToString(); (I WANT LABEL3.TEXT = FIRSTNAME , LASTNAME FROM MY DATABASE) } else { Response.Redirect("./Login.aspx"… JButton, states Welcome, FirstName & LastName Programming Software Development by justindill ….*; public class Now extends JFrame { JLabel FirstName; JTextField jtfFirstName; JLabel LastName; JTextField jtfLastName; JLabel Age; JTextField jtfAge; public Now(){ //Set FlowLayout… Re: JButton, states Welcome, FirstName & LastName Programming Software Development by DavidKroukamp … extends JFrame { > JLabel FirstName; > JTextField jtfFirstName; > JLabel LastName; > JTextField jtfLastName; > JLabel Age; > JTextField jtfAge; >… Re: JButton, states Welcome, FirstName & LastName Programming Software Development by justindill …; public class Now extends JFrame { //Create text fields for FirstName, LastName, and Age private JTextField jtfFirstName = new JTextField(); private JTextField jtfLastName… Re: forenamelastname, forename-lastname, forename.lastname? Digital Media Digital Marketing Search Engine Strategies by dominique7 … could help me with this. Besides going for "forename-lastname.com" or for "forenamelastname.com" I consider… the solution "forename.lastname.com", so the domain could be open for other… Re: How to Assign a value taken from LastName Text box to a Modular Variable. Programming by rproffitt @X. How does that work for the topic? "How to Assign a value taken from LastName Text box to a Modular Variable." I think it's clear now that the OP needs to refine their question. Re: How to Assign a value taken from LastName Text box to a Modular Variable. Programming by Minimalist … these before the Load method like: Public Class TheName Dim LastName as string="" or Dim LN As String = "… Provide hyperlink to search results Programming Web Development by andarivaadu1 … ($row = mysql_fetch_array($author_row)) { $firstname = $row['firstname']; $lastname = $row['lastname']; $middle_initial = $row['middle_initial']; } } if ($college == &…firstname'] == $row['firstname'] && $row_faculty['lastname'] == $row['lastname'] && $row_faculty['middle_initial'] == $row['middle_initial… Auto submit + php form... HELP Programming Web Development by PomonaGrange …SELECT `EndowmentNumber`,`LotSize`,`Letter`,`Section`,`LotNumber`,`LotOwner`,`LastName`,`FirstName`,`MiddleInitial`,`MaidenName`,`Suffix`,`Born`,`Died`,`VeteranInfo`,`MiscInfo…SELECT `EndowmentNumber`,`LotSize`,`Letter`,`Section`,`LotNumber`,`LotOwner`,`LastName`,`FirstName`,`MiddleInitial`,`MaidenName`,`Suffix`,`Born`,`Died`,`VeteranInfo`,`MiscInfo… C# ASP.net Update Data into a SQL server database Programming Software Development by mike888 …string sqlQuery = " UPDATE [db_owner].[Customer] SET [FirstName] = @FirstName, [LastName] = @LastName, [Email] = @Email, [Password] = @Password, [Address1] = @Address1, …string sqlQuery = " UPDATE [db_owner].[Customer] SET [FirstName] = @FirstName, [LastName] = @LastName, [Email] = @Email, [Password] = @Password, [Address1] = @Address1, … How do I get the expected outputs for this following program? Programming Software Development by andrew mendonca …0; j < i; j++) { if(lastName[i] > lastName[j]) { swap(lastName[i], lastName[j]); swap(average[i], average[j]); } … average[j]) { swap(average[i], average[j]); swap(lastName[i], lastName[j]); } } } } int searchByAverage(int targetAverage, int… FORMAT DATA FROM ROW TO COLUMN Programming Software Development by goowee lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] set2 [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname