Could Someone Help Me With This?

Pages: 1, 2
free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Could Someone Help Me With This?

chappill
Gahhh got another problem, where it says:
CODE

he database already exists, do you want to use it, or delete it?<br>
<a href="install.php?step=1&action=use_old">Use It</a><br>
<a href="install.php?step=1&action=delete_old">Delete It</a><br>

I click use old and it doesn't forward the page! It's miffing me off.

Reply

galexcd
Well it looks like its more than just the step variable that is being passed through the url, so just so we do not have to keep diong this remove the $step=$_GET['step']; and replace it with the following code:

CODE
foreach($_GET as $geta=>$getb) $$geta=$getb;


This should resolve all of the problems because this line of code will forward all of the values in the get array to regular php variables. I DO NOT RECOMMEND DOING THIS NORMALLY. This can be a major security risk to your program if you do not know how to properly parse through your user's input. I am only recommending this in this case because it is the installer only, and the file will not be used after installing.

Reply

chappill
Hmmmm worked the furthest so far but now:
CODE

<?php

}
if($step==3){

//CHECK SUBMITTED INFORMATION
if((!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",$mail)) || (!isset($pass)) || (!isset($pass2)) || (empty($pass)) || (empty($pass2)) || ($pass!=$pass2) || (!isset($user)) || (empty($user)) || (!isset($sitename)) || (empty($sitename)) || (!eregi("^http://+[_a-z0-9-]*",$siteurl)) || (!eregi("^http://+[_a-z0-9-]*",$pollurl))){

?>


That bit (moving to step 3) doesn't work!!! This is like the script from hell, I'll turn it into a challange 3 hosting credits to the solver of my problem! Lol.

Reply

galexcd
So what exactly is it doing when you try to go to step 3? Where exactly did you get this script anyway? Perhaps its time to drop this script and go with one written by somebody more competent.

Reply

chappill
Yeah i got it off a mate who said it worked fine :S I'll drop it now. Thanks for the help though, I'll try work on it myself.

And i looked and i found the problem!

CODE

<tr id="submitrow">
<td bgcolor="#000000" align="center" colspan="2">
<input type="submit" value="Finish Installation">


It doesn't tell the page to move on to page 3! I'll try do that because its in html.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Similar Topics
Looking for ,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for ,

*MORE FROM TRAP17.COM*
advertisement



Could Someone Help Me With This?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE