Install.php problem

Started on the old forum in June 2011 · view the original in the archive · old links redirect here

2 replies · 670 views · started 15 years ago · 1 min read

2 participants
Shayaan Junior · 10 posts #1

Where to put urer name and details in this code please help me 🙁

"Enter your details:

<form action='install.php?level=1' method='post'> Admin Password: <input name='pass' type='text' value='1234'>

Mysql Host:

<input name='serv' type='text' value='localhost'>

Database Name :

<input name='db' type='text' value='sea'>

Db Username:

<input name='userbd' type='text' value='root'>

Db Password :

<input name='passbd' type='text' value=''> <input type='submit' value='Submit'> </form>"; }
atef Developer · 224 posts #2

This is an example

$adminpass=$_POST['pass'];
$dbname=$_POST['db'];
if(strlen($adminpass) < 3)
{
echo "Admin password r too short";
}
elseif(empty($dbname))
{
echo "database name cant be empty";
} else {
// success script here
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close