User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,630 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1446 | Replies: 48 | Solved
Reply
Join Date: May 2008
Location: Swindon, UK
Posts: 117
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: a little help

  #31  
May 9th, 2008
what error do you get on submitting?
Reply With Quote  
Join Date: Jan 2008
Posts: 76
Reputation: rickarro is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rickarro rickarro is offline Offline
Junior Poster in Training

Re: a little help

  #32  
May 9th, 2008
This page can not be displayed.
Reply With Quote  
Join Date: Jan 2008
Posts: 76
Reputation: rickarro is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rickarro rickarro is offline Offline
Junior Poster in Training

Re: a little help

  #33  
May 9th, 2008
could the problem be on the first form, at the:
echo '<td><a href="phoneupdate1.php?id='.$row[0].'">Update</a></td><br/><hr>';
area? Maybe its not passing the id to the next form. Is there a way to test this?
Reply With Quote  
Join Date: May 2008
Location: Swindon, UK
Posts: 117
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: a little help

  #34  
May 9th, 2008
make sure that the location in the header() redirect is correct.
Reply With Quote  
Join Date: May 2008
Location: Swindon, UK
Posts: 117
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: a little help

  #35  
May 9th, 2008
Originally Posted by rickarro View Post
could the problem be on the first form, at the:
echo '<td><a href="phoneupdate1.php?id='.$row[0].'">Update</a></td><br/><hr>';
area? Maybe its not passing the id to the next form. Is there a way to test this?


No, that is right, $row[0] refers to the column id in the database, the easy way to check, click it and see if the correct number shows up in the URL on the next page

http://www.elvenblade.com/test/ - that is the script I posted in my previous message, it all seems to be working there.
Last edited by xan : May 9th, 2008 at 11:08 am.
Reply With Quote  
Join Date: Jan 2008
Posts: 76
Reputation: rickarro is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rickarro rickarro is offline Offline
Junior Poster in Training

Re: a little help

  #36  
May 9th, 2008
The header redirect is directing back to the "phoneupdate.php" file, where it should.
Reply With Quote  
Join Date: May 2008
Location: Swindon, UK
Posts: 117
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: a little help

  #37  
May 9th, 2008
try changeing these <? echo $row[number]; ?> to these <?=$row[number]?> in the HTML form.
Last edited by xan : May 9th, 2008 at 11:40 am.
Reply With Quote  
Join Date: Jan 2008
Posts: 76
Reputation: rickarro is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rickarro rickarro is offline Offline
Junior Poster in Training

Re: a little help

  #38  
May 9th, 2008
No Change
Reply With Quote  
Join Date: Jan 2008
Posts: 76
Reputation: rickarro is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rickarro rickarro is offline Offline
Junior Poster in Training

Re: a little help

  #39  
May 9th, 2008
Do you have it working on your side? This is just too weird.
Reply With Quote  
Join Date: May 2008
Location: Swindon, UK
Posts: 117
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 20
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: a little help

  #40  
May 9th, 2008
I have it working here: http://www.elvenblade.com/test/ with the code I posted in post 29
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 6:40 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC