<?php
include 'header.php';
?>
<div class="jumbotron">
<h1>Add Your Hotel Details,<br> Welcome to <span style="color:green;">Kana Bachao M sign up 457</span></h1>
<p class="pt-3" style="font-size: 21px;">Create an Account and add your Food</p>
</div>
<div class="container">
<div...
hello! i'm making a calendar that shows which days have been booked and which are available.
In my db I have two important cols for this called: start_date and end_date (translation is start_datum and eind_datum)
Now I'm trying to make the days that are booked have the red booked label. the...
I want to create a calendar in php but it's not working out so well I want to be able to make my < and > buttons work and change the date on top of the calendar with one month. but I I can't get it to work. right now the date on top of the calendar is 08-06-2022 and I don't know why this is the...
I don't understand what is going wrong here I have a form for my users called reservation.php this one (is supposed to ) goes to reservationback.php but I have been trying it and for some reason it goes to reservation.php?submit=submit why is this happening??
reservation.php this one is...
I've been trying to make a multi user login system but when I try to log on it stays at the login page (index.php) page. What can I do?
index.php
<form method="post" class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">Email</label>
<div...
I have a website that was hosted in n*agahoster, which already expired (with active status) since our company didn't want to use the domain example.com and instead change the hosting place to a government's server which resulting to a new domain example.gov.xx
The procedure was not hard, since...
I'm new to programming, and I'm sorry if this is a really obvious question, which I think it is. I'm participating in a beginner CTF event, and I managed to find the following PHP code for a website:
$firstChar = $_POST['filename'][0];
if (strcmp($firstChar, '/') == 0) {
echo "Not...
Hi,
Quite new at php and it's usefulness.
Needs:
0. i have an array of a BUNCH of zip codes that need to lookup their congressman;
1. go to this URL: https://ziplook.house.gov/zip/ziplook.html;
2. loops through the array and puts a zipcode into the field called "zip"; and then
3. presses...
Hi so right now I'm just thinkering around to slowly in the end try to make a password reset page
right now I want to post variable to my reset password backend page but I can't seem to send any post variables to this page?
I'm not seeing what I'm doing wrong
code:
passwordreset.php
<?php
//...
can I calculate the total price depending on the number that the user types into the input?
so for example
idk how to do this? this is my code. I have been looking around on the internet but they only gave me examples of how their shopping cart was looking. I don't want that I want ot be able...
Hello friends, I've something to ask about coding codeigniter. I want to create a nested dropdown, but when on testing run it says "The results could not be loaded". So maybe is there something wrong with my typing, please help me.
Here I show the code:
<?php defined('BASEPATH') OR exit('No...
Hi CF,
I would like to ask for feedback on a project of mine I made in Python & PHP. It is a program that allows you to wirelessly share files with other devices on your network. Any device that can access the webpage for the server can upload and downloads files.
Github...
Hi, I am having an issue with my site and it is driving me crazy for weeks now. My problem is simple yet I cannot find how to fix it.
The issue is:
In my Menu, all pages are set but when I click on the "Profile" page, it loads the "Home" page.
What I have tried so far:
-create a new menu and...
Hello I have been programming for a while now and the thing that I just can't seem to be able to understand is prepared statements. Don't get me wrong I understand why I have to use it. but I don't understand how in a project. Do any of you have some easy tutorials?
Hello I'm trying to do a password_has and password verify for my project. I'm trying to make my project safer step by step. I have already put a pashword hash in my code and that works as you see:
but I can't seem to get it to verify. it either says password incorrect or I can't login at all...
Thanks for all the previous help. The web script that I'm trying to modify successfully allows for the ability to search the site by keyword, and filters results by category and by sub-category. I am trying to display a search form when sub-category page appears (as a first step in creating the...
Hi
If you've used and can help, I'd really appreciate it.
Part of my code creates an appointment in our diary system, I've now implemented Microsoft login (using the Graph API) so I have a token.
I can create an event (appointment) BUT the location doesn't show it as a true location even...
I am just curious as to why others generate unique strings or ID for transactions or orders when they can just use the primary key in SQL.
Is it recommended to generate id like this 111834039007163223, or is it okay to just use the primary key in SQL generated using auto_incement?
I always see...
I created a function that resize an image. But I only want to define the target height and then auto size the width.
For example if I have a 840x360. My target height is 250 and I want to auto compute the width to maintain it's ratio.
So far I can only resize the image based on the resolution...
Hello,
I'm trying to fetch all my checkboxes with additional column from pivot table.
Model: Stock
class Stock extends Model
{
public function products(){
return $this->belongsToMany('App\Product','products_stock')->withPivot('qtySpent')->withTimestamps();
}
}...