jemz
-
Posts
27 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by jemz
-
-
Is that a timer after the green box show in a couple of seconds,the form login will display?
-
-
Hi, i just want to ask on how can i make like the sign-in in the w3school forum, when we click the sign it will show the small box colored green and then it will display the login form,is it okay to ask on this ?i just want to learn how.I hope you can help me. Thank you in advance.
-
-
Hi, I am back about the menu in associative array. Okay how can i do this to show something like this in the URL example. index.php?fpage=home how can i do that. Thank you in advance.You mean to show a link? Just print the link:echo '<a href="URL">Link name</a>';
If I went any further here I'd be doing it for you and you wouldn't learn anything. I suggest looking through the PHP tutorials and the manual because this is really simple.
-
@Ingolme,Okey thank you for this link,i will write again to you if i have problem.
-
Hi, Can i ask some idea on how to do this,i want that if someone will registered to my website it will send message or confirmaton to there email..can you help me please how to do this.
-
Select option
in PHP
Is it possible also in this select example inside the select option cat orchid mouse Karl Jupiter if the user will select the cat it will display to the texfield "Animal" and if the user will select Ochid it will Display to the textfield "plant" is this possible?Done this kind of think many times with select and option elements before, not exactly like this, but similar. -
Select option
in PHP
Hi,it's working where did you learn this kind of coding i mean the way you do in your echo?Thank you so much it helps me.Try<?phpfor($d=1;$d<=31;$d++){ echo '<option'; if($day==$d){ echo ' selected="selected"';} echo '>'.$d.'</option>';} ?>
-
Select option
in PHP
No, this is what I mean:<select name="status"> <option value=""></option> <option value="Active" <?php if($status == 'Active') { echo 'selected="selected"'; } ?>>Active</option> <option value="Inactive" <?php if($status == 'Inactive') { echo 'selected="selected"'; } ?>>Active</option></select>
Hi,can you help me please on this i am stuck in this,i could not select the day.Thank you in advance.<select name="day" > <?php for($d=1;$d<=31;$d++) echo '<option f($day==$d) selected='selected'>'.$d.'</option>'; ?> </select>
-
Select option
in PHP
Hi sorry for the late reply.Thank you so much it's working.you are very great.No, this is what I mean:<select name="status"> <option value=""></option> <option value="Active" <?php if($status == 'Active') { echo 'selected="selected"'; } ?>>Active</option> <option value="Inactive" <?php if($status == 'Inactive') { echo 'selected="selected"'; } ?>>Active</option></select>
-
Select option
in PHP
Hi,thank you for the quick reply,is this what you mean?You set the value by adding selected="selected" to the option that contains the value you want.<select name="status" > <option value="<?php echo $status; ?>" selected="selected"></option> <option value="Active">Active</option> <option value="Inactive">Inactive</option></select>
-
Select option
in PHP
How do i set value in my select option, and i want this value is from the database. I tried this but it's not working
<select name="status" value="<?php echo $status; ?>"> <option value=""></option> <option value="Active">Active</option> <option value="Inactive">Inactive</option></select>
Can you help me on this.Thank you.
-
Hi, I need some help,can i use input type="button" when deleting data in my database, Okay,this is how i made my code,i displayed all the records in the database using the Table,and i am using PDO.what i want is to click the delete button and this will redirect to the goDelete.phpand my problem in goDelete.php is i cannot displayed the idno and the name.Can you help me on this.Thank you in advance.
while($fld = $count->fetch(PDO::FETCH_OBJ)) { ...... echo '<td>'.$fld->idno.'</td>'; echo '<td>'.$fld->Name.'</td>'; echo '<td><input type="button" name="delete" value="Delete" onclick="delete()"> </input></td>';}
my script
function delete(){ window.location.href="goDelete.php";}
- 1
-
Hi,Thank you don't worry i am not kind of man asking help without coding,actually i made the code now.and also i am reading other tutorial.thank you again and i will write again to you if i have doubt.You mean to show a link? Just print the link:echo '<a href="URL">Link name</a>';
If I went any further here I'd be doing it for you and you wouldn't learn anything. I suggest looking through the PHP tutorials and the manual because this is really simple.
-
Okay,thank you for the reply,so how can i get to other page in this array?for example in about.php ,can i use isset()?You don't need to worry about efficiency with this kind of thingUse a foreach() loop to access all the elements:foreach($menu as $name => $url) { echo "Link name: {$name}<br>Link url: {$url}";}
-
Hi,Thank you for this,yes this is it what i am looking for so how can i access the about.php using this array,is this an efficient way to use?You mean something like this: Ex:$menu = array("Home" => "index.php", "Services" => "services.php", "About" => "about.php", "Contact" => "contact.php");
That's an associative array. To get index.php: $menu['Home'];
- 1
-
-
how can i make sign-in like in w3schoolforum
in JavaScript
Posted