monkeypaw201 Posted April 22, 2008 Share Posted April 22, 2008 i ran this: <?php echo $_GET['page']; ?> on the following page: http://domain.com/index.php?page=home and got this error Undefined index: page in /var/www/vhosts/manageyourva.com/httpdocs/Dev/Pages/Add_Ons/Contact/form.php on line 89 Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/ Share on other sites More sharing options...
phpSensei Posted April 22, 2008 Share Posted April 22, 2008 can you post line 89? try renaming the var in HTTP to pg = home Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524478 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 line 89: <input name="cpage" type="hidden" value="home.php?page=<?php echo $_GET['page']; ?>" /> Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524480 Share on other sites More sharing options...
phpSensei Posted April 22, 2008 Share Posted April 22, 2008 Are you sure thats line 89? Try posting a couple of more lines ( line: 83 - 92) Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524487 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 here is the full form <form method="POST" action="Pages/Add_Ons/Contact/form.php"> <table width="100%" border="0"> <tr> <td>Full Name:</td> <td><span id="sprytextfield1"> <label> <input type="text" name="full_name" id="full_name"> </label> <span class="textfieldRequiredMsg">You Must Enter Your Full Name!</span></span></td> </tr> <tr> <td>E-Mail Address:</td> <td><span id="sprytextfield2"> <label> <input type="text" name="email" id="email"> </label> <span class="textfieldRequiredMsg">You Must Enter Your E-Mail Address!</span></span></td> </tr> <tr> <td>Message:</td> <td><span id="sprytextarea1"> <label> <textarea name="message" id="message" cols="45" rows="5"></textarea> </label> <span class="textareaRequiredMsg">You Must Enter A Message To Send!</span></span></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr><input name="cpage" type="hidden" value="home.php?page=" /> <td colspan="2"><label> <div align="center"> <input type="submit" name="submit" id="button" value="Send Message"> </div> </label></td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524498 Share on other sites More sharing options...
AndyB Posted April 23, 2008 Share Posted April 23, 2008 It's not an error, it's a warning. Specifically a warning that you have used a variable before it was defined. And I fail to see what the form code has to do with anything, since it doesn't contain any php at all. Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524597 Share on other sites More sharing options...
monkeypaw201 Posted April 23, 2008 Author Share Posted April 23, 2008 It's not an error, it's a warning. Specifically a warning that you have used a variable before it was defined. And I fail to see what the form code has to do with anything, since it doesn't contain any php at all. well, ask him, i just posted other lines Are you sure thats line 89? Try posting a couple of more lines ( line: 83 - 92) Link to comment https://forums.phpfreaks.com/topic/102419-solved-quick-question/#findComment-524652 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.